Forum Replies Created

Viewing 15 posts - 196 through 210 (of 3,957 total)

  • RE: Update Quantities over multiple records

    skilly2 (3/26/2015)


    This worked perfectly! I'm still trying to wrap my head around it though. I understand what the Over (Partition statement does normally, but I've never used the...

  • RE: Are the posted questions getting worse?

    SQLRNNR (3/26/2015)


    dwain.c (3/26/2015)


    ChrisM@Work (3/26/2015)


    Where’s a plan showing huge Estimated Operator Costs when you need one? Have a look at the estimated plan for this conditional query i.e. the IF as...

  • RE: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    Solomon Rutzky (3/26/2015)


    peter-757102 (3/26/2015)


    Gary Harding (3/26/2015)


    Solomon Rutzky (9/4/2014)


    Jeff Moden (9/3/2014)


    I guess I'd have to disagree. Nulls mean "Unknown" and it is definitely known that there are no values on...

  • RE: Are the posted questions getting worse?

    ChrisM@Work (3/26/2015)


    Where’s a plan showing huge Estimated Operator Costs when you need one? Have a look at the estimated plan for this conditional query i.e. the IF as well as...

  • RE: SQL Query Help

    tfendt (3/26/2015)


    This works :). One thing I forgot to mention however is the fees are dynamic and not just limited to BFee and Holding, is it possible to modify it...

  • RE: The Worst Comments

    -- Whilst I'm a consultant named Jack

    -- I swear that I'll never be back

    -- Removing this code

    -- Causes server overload

    -- Despite you're thinking its a hack.

    See what I mean?

  • RE: The Worst Comments

    The worst comments use the words whilst, whence, betwixt and amongst or any of their related British-isms. 😛

    Unless they're used consistently of course.

  • RE: The Worst Comments

    Gary Varga (3/26/2015)


    dwain.c (3/25/2015)


    ...I beginning to think that when I wrote this article (based on a quotation from Jeff):

    Make it Work, Make it Fast, Make it Pretty[/url]

    Maybe I should have...

  • RE: Identifying Start Dates not Aligned with End Dates on a Prior Row

    Hehe. I'm sure all will forgive you Eirikur!

    Better to have stumped you than for you to find my code-craft lacking.

  • RE: Doubt about logic in T-SQL

    Jeff Moden (3/25/2015)


    dwain.c (3/25/2015)


    Jeff Moden (3/24/2015)


    Will there only ever be two "id_fixing" values? If not, how many are there or could be?

    I hate it when you ask questions like...

  • RE: SQL Query Help

    This may be a little cleaner:

    WITH EffectiveDates AS

    (

    SELECT PriceEffectiveDate, RCID, TID, PCD

    FROM #BasePrice

    UNION

    SELECT EffectiveDate,...

  • RE: SQL Query Help

    I'd guess there's probably a better way to do this (certainly true in SQL 2012), but for now this is the best I can come up with.

    SELECT EffectiveDate, RCID, TID,...

  • RE: Update Quantities over multiple records

    Man, this looks like deja vu all over again!

    http://www.sqlservercentral.com/Forums/Topic1671044-3412-1.aspx?Update=1%5D

    Never let it be said I can't learn from the master (that being Itzik Ben-Gan):

    WITH RcdItems AS

    (

    SELECT *,

    ...

  • RE: The Worst Comments

    Jeff Moden (3/25/2015)


    LightVader (3/25/2015)


    ChrisM@Work (3/25/2015)


    Jeff Moden (3/24/2015)


    Eirikur Eiriksson (3/24/2015)


    Wayne West (3/23/2015)


    Jeff Moden (3/22/2015)


    Steve Jones - SSC Editor (3/16/2015)


    Eirikur Eiriksson (3/13/2015)


    Digressing slightly, how would the threadizens describe the optimal code comments?...

  • RE: Doubt about logic in T-SQL

    Sean Lange (3/25/2015)


    dwain.c (3/24/2015)


    I see no alternative other than a loop for this. Where the heck is Itzik Ben-Gan when you need him!

    Speak and he shall appear. The OP...

Viewing 15 posts - 196 through 210 (of 3,957 total)