Forum Replies Created

Viewing 15 posts - 2,311 through 2,325 (of 3,348 total)

  • RE: Complex joins

    By the way, for anyone who wants to try how these variations cann affect the result set, here is the set of test data I used when prepaaring this question:

    CREATE...

  • RE: Complex joins

    honza.mf (12/6/2011)


    Hi!

    I don't understand how the condition AND o.OrderDate > DATEADD(month, -4, CURRENT_TIMESTAMP) in SQL Query #4 works. For me it seems it is to...

  • RE: Complex joins

    Thanks, all, for your kind words. It;s always good to know that my questions are appreciated.

    Tom Brown (12/6/2011)


    I had never heard of Nested Joins, so learned something today.

    However my...

  • RE: Table space usage 3

    Thanks, all, for the kind words. I figured a not-too hard yes/no question would make for a nice change of pace. (It being scheduled on a friday is not my...

  • RE: Variant order 1

    Carla Wilson-484785 (12/1/2011)


    I really don't understand why someone would want to do a comparison that is based on the data type.

    Well, I guess the issue is that the SQL Server...

  • RE: XML

    Nice question. XML is one part of the database I am still struggling with. I first ticked the answer I thought was corerct without submitting, then went to the dosumentation...

  • RE: Variant order 1

    KWymore (11/30/2011)


    I have not yet seen sql variants actually used in production but then again, we have very few 2008 instances up and running.

    There is no connection between sql_variant and...

  • RE: Variant order 1

    Gerardo Galvan Castro (11/30/2011)


    In the e-mail newsletter the QotD did not state it was for SQL Server 2008 and later, so I tested under SQL Server 2005 (the only version...

  • RE: Variant order 1

    Removed.

    I must learn to read first, write later. Sorry!

  • RE: Variant order 1

    Tom, please double check the question. The SQL text contains the string constant 'v3 = v2' as one of the CASE results. The correct answer option reads v2 = v3....

  • RE: Variant order 1

    Toreador (11/30/2011)


    Hugo Kornelis (11/30/2011)


    To me, it was immediately obvious that the v3=v2 / v2=v3 error was a mistake made when entering the question and not a deliberate trick.

    Same here, but...

  • RE: Variant order 1

    Good question. Thanks, Tom! 😉

    To me, it was immediately obvious that the v3=v2 / v2=v3 error was a mistake made when entering the question and not a deliberate trick.

  • RE: Insert Into problems

    codebyo (11/29/2011)


    I usually code my INSERTs like this whenever possible:

    INSERT INTO #ATable

    (

    Col1,

    Col2,

    Col3

    )

    VALUES

    (

    2 AS Col1,

    1 AS Col2,

    3 AS Col3

    );

    I'm not sure if it's a good way of doing it but it...

  • RE: Insert Into problems

    Nice question. Not terribly hard, but interesting. It could have been made a bit harder by omitting the column list in the INSERT:

    INSERT INTO #ATable

    SELECT 2 AS col2, 1 AS...

  • RE: DateTime Precision

    roger.plowman (11/28/2011)


    Using single quotes for both strings and dates is a brain-dead design decision--period.

    Technically, T-SQL is not using single quotes for both strings and dates. It uses single quotes for...

Viewing 15 posts - 2,311 through 2,325 (of 3,348 total)