Forum Replies Created

Viewing 15 posts - 931 through 945 (of 5,504 total)

  • RE: Optimize this Query

    I think you can remove this block:

    OR A.[MESSAGE] LIKE '%[$][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9][0-9][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9].[0-9][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9][0-9].[0-9][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9][0-9][0-9].[0-9][0-9]...

  • RE: Using TRY-CATCH with Multiple DELETE DMLs

    Why don't you use referential integrity (foreign key) with cascade delete?

  • RE: xml question

    For some reason SQL Server does not accept the data as valid XML.

    I get the error "XML parsing: line 3, character 75, semicolon expected"

  • RE: Are the posted questions getting worse?

    We just need to be careful: once we're short on apostrophes, quite a few letters (including the "blank") will be in highe demand, too. (It's vs. it is not, won't...

  • RE: Trying to group sums by fiscal year

    @tina:

    Don't get confused by CELKO's reply.

    He's a strong advocat of ISO style programming and the usage of exactly the right terms / names when asking questions or naming a column....

  • RE: Trying to group sums by fiscal year

    ColdCoffee (9/19/2011)


    LutzM (9/19/2011)


    ColdCoffee (9/19/2011)


    tina 77078 (9/19/2011)


    Thanks Lutz, my new BFF..

    can i be ur BFF also ?? :ermm:

    Hey folks,

    just keep in mind, this is still a professional SQL Server site....

  • RE: Are the posted questions getting worse?

    WayneS (9/19/2011)


    LutzM (9/19/2011)


    WayneS (9/19/2011)


    ...

    Slow compared to QU, but still faster than c.u.r.s.o.r.

    Maybe I ought to do some comparison tests with Hugo's set-based methods, and others that come out of this...

  • RE: Trying to group sums by fiscal year

    ColdCoffee (9/19/2011)


    tina 77078 (9/19/2011)


    Thanks Lutz, my new BFF..

    can i be ur BFF also ?? :ermm:

    Hey folks,

    just keep in mind, this is still a professional SQL Server site. 😎

  • RE: Trying to group sums by fiscal year

    OUCH!!! My fault!! Total simple error:

    SELECT

    SUM (CASE WHEN SomeDate > ='20100701' and SomeDate < '20110701' THEN YourValue ELSE 0 END) as FY2011,

    SUM (CASE WHEN SomeDate > ='20110701' and SomeDate...

  • RE: Unable to print variables outside of loop

    The order used to process the data leads to a NULL value at the last pass (after delete of the last row SELECT @db will return NULL. When you concatenate...

  • RE: Compare Values

    Most likely it's due to the usage of FLOAT and DOUBLE. There might be some rounding differences.

    Do you really need FLOAT on the SQL Server side? I 'd recommend to...

  • RE: Trying to group sums by fiscal year

    The easiest solution would be a calendar table where you'd have a separate column to identify the fiscal year.

    But you could also use a CASE function:

    SELECT

    SUM (SELECT CASE WHEN...

  • RE: Are the posted questions getting worse?

    WayneS (9/19/2011)


    Gianluca Sartori (9/19/2011)


    WayneS (9/19/2011)


    Opinions wanted: Is it fair to post a Denali solution?

    Fair but slow, based on your performance tests.

    Slow compared to QU, but still faster than c.u.r.s.o.r.

    Maybe I...

  • RE: Are the posted questions getting worse?

    Ninja's_RGR'us (9/17/2011)


    LutzM (9/17/2011)


    Lynn Pettis (9/17/2011)


    We are getting close. Who will be the lucky winner making the 30,000 post to The Thread???

    I don't think so...

    If the post count is still...

  • RE: Are the posted questions getting worse?

    Tom.Thomson (9/17/2011)


    LutzM (9/17/2011)


    Lynn Pettis (9/17/2011)


    We are getting close. Who will be the lucky winner making the 30,000 post to The Thread???

    I don't think so...

    If the post count is still...

Viewing 15 posts - 931 through 945 (of 5,504 total)