Forum Replies Created

Viewing 15 posts - 2,641 through 2,655 (of 3,348 total)

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    Paul White NZ (9/3/2010)


    Hugo,

    I really want to break this down to a simple point which I hope everyone can agree on:

    "The single requirement for Quirky Update is that rows get...

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    Tom.Thomson (9/3/2010)


    As has been pointed out often enough, MS published a knowledge-base article on this technique stating conditions under which it does work and conditions under which it doesn't.

    Are you...

  • RE: Page/Row Compression

    Though I am very happy to see a question on a relatively new and very valuable option, I am a bit disappointed that the answers are debatable.

    It all depends on...

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    Jeff Moden (2/7/2010)


    Sorry this took longer than expected. Ah... looking back at the original post, I remember. What this proves is that my explanation as to why it...

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    Jeff Moden (9/2/2010)


    No one has yet observed out-of-sequence updates if they've met ALL the rules. That's been since the earliest versions of Sybase and all versions, hot fixes, CU's,...

  • RE: The Semantics of NULL in SQL Server 2008

    oscar.leeper (9/2/2010)


    if(1=0 and 1=null)

    Does ternary logic have the same rule that allows me to to say that the above is logically equivalent to

    if 1!=0 or 1!=null

    Well, yes and no.

    It is...

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    boudinov (9/2/2010)


    Hi Jeff,

    I bet we would love to see "groupings on repeated data such as "Start/Stop" indications over time (although there is a clever way to solve that which will...

  • RE: What will happen?

    Robert Dennyson (9/2/2010)


    It should work

    SELECT COVERT(VARCHAR,GETDATE(),111);

    If you add the missing letter N (CONVERT), it does work. It is an explicit conversion from datetime to varchar format, using the yyyy/mm/dd format...

  • RE: The Semantics of NULL in SQL Server 2008

    oscar.leeper (9/1/2010)


    On both my 2k8 and 2k5 installations, I only got the OR behavior to match the article. Is there a setting I'm missing?

    No, you are making a logic...

  • RE: What will happen?

    Oleg Netchaev (9/1/2010)


    Hugo's script looks somewhat unusual because it uses some varchar value which is guaranteed to be dateformat independent valid datetime value (YYYYMMDD is always translated correctly regardless of...

  • RE: HAVING without GROUP BY

    da-zero (9/1/2010)


    Nice question. But I believe I've seen a similar one here in the QotD (but I may be mistaken).

    Correct. That was April 14, and it was similar but not...

  • RE: What will happen?

    webrunner (9/1/2010)


    DECLARE @a INT

    DECLARE @b DATETIME

    SET @a = @b

    The above code executed successfully for me in SQL 2005 but gave the error listed in the answer when I ran it...

  • RE: What will happen?

    Dave62 (9/1/2010)


    SELECT DATEADD(day, DATEDIFF(day, '20100101', CURRENT_TIMESTAMP), '20100101');

    The only thing I don't like about this method is the hard-coded string. I suppose a dynamic expression could replace it but it...

  • RE: What will happen?

    tushkieeeee (9/1/2010)


    please try the code below. I think this is what the auhtor wanted to convey.

    I don't think so. I think the author wanted to convey that implicit conversion from...

  • RE: HAVING without GROUP BY

    Chris Cradock (9/1/2010)


    I'm not attempting to say HAVING without GROUP BY is invalid, and yes adding MAX(col2) to the selected columns I would then expect the behaviour you describe (and...

Viewing 15 posts - 2,641 through 2,655 (of 3,348 total)