Forum Replies Created

Viewing 15 posts - 331 through 345 (of 424 total)

  • RE: TSQL: Computing Balance

    this particular example is not a pure triangle as illustrated in your article. that's because the 'code' (account number) is used as the primary join article. so, the...

  • RE: Full text index error

    Kurt (2/12/2008)


    The sql server throws an error for this query statement. That's normal, because full text indexing is not installed. It fails on the line create fulltext catalog and throws...

  • RE: Full text index error

    the create catalog should fail if full text indexing is not available. does the sql below run without error?

    if (1 = 1)

    begin

    exec sp_fulltext_database 'enable'

    ...

  • RE: Full text index error

    are you certain the CREATE FULLTEXT CATALOG statement is not producing error?

    you can enable full text indexing for the database even if full text search is not installed, but CREATE...

  • RE: TSQL: Computing Balance

    The problem is - this turns into a real dog of a query, and will have the tendency to blow out your tempDB, steal all of the RAM, etc......

  • RE: TSQL: Computing Balance

    i'm confused. assuming there's some column that can order the payments sequentially/chronologically, can't this be solved with a simple self join?

    create table #z

    ( seq int not null, code char(2),...

  • RE: 2005 Developer edition vs Trial software?

    you can re-install the trial, but the ticker will still be running from your original install. so you won't be able to get around the 180 day limit.

    like i...

  • RE: get all the child categories in the parent category

    the CTE route is really cool since it calls itself. i only discovered that CTEs are really treated as "expressions" a few days ago so the self-referencing CTE in...

  • RE: 2005 Developer edition vs Trial software?

    that's kind of fuzzy. if someone else is accessing it over the internet for training purposes, then it's obviously not being used only by you (the developer) for...

  • RE: get all the child categories in the parent category

    a (useful) recursive function uses it's calculation result as input to the recursive call. a recursive function is one technique to perform recursion, but not the only technique. ...

  • RE: get all the child categories in the parent category

    the technique doesn't use recursive calls (a process/method calling itself) but it does use recursion and can be considered recursive by defintion.

    from dictionary.com:

    re·cur·sive –adjective

    1. pertaining to or using...

  • RE: get all the child categories in the parent category

    assuming parentid refers to an id in the same table (self join), you would have to do it with some sort of recursion. here's my suggestion:

    create table #vehicles

    ( id...

  • RE: help with the query speed

    but a view would making writing and understanding that query a lot easier.

  • RE: Need help with a query

    quick and dirty, but you get the idea:

    select * from (

    select *, row_number() over (partition by Country order by Hits desc) as num

    from tbCountryWebHits ) as z

    where num <= 2

    if...

  • RE: help with the query speed

    WHERE r.stateid=(case when @StateID is null or @StateID='' then r.stateid else @StateID end)

    and r.provid=(case when @provID is null or @provID='' then r.provid else @provID end)

    and r.rID=(case when @ReqID is null...

Viewing 15 posts - 331 through 345 (of 424 total)