Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)

  • RE: Correlated Query

    The article referred to by Jeff is extremely interesting, and I will definitely make use of this technique.

    However, I don't think a subquery solution is always bad. It would very...

  • RE: Correlated Query

    A correlated subquery is the way to go. They can be very useful.

    select

    ID

    , ProjectPeriodID

    , ItemisedGrantID

    , Amount

    , ISNULL (

    (

    -- This does the correlated sub query

    SELECT sum (amount)

    from ProjectPeriod c

    where c.ItemisedGrantID...

  • RE: convert a varchar(4000) to a int !?

    How about converting the int to a varchar with a leading and trailling comma.

    Add a leading and trailing comma to the positions list

    and use charindex to see if the...

  • RE: Row-By-Row Processing Without Cursor

    I don't think the string processing is a problem, but the query would a) not work properly or b) fall over due to the 8K varchar limit (as the author...

Viewing 4 posts - 1 through 4 (of 4 total)