Forum Replies Created

Viewing 11 posts - 91 through 101 (of 101 total)

  • RE: T-SQL

    The only option that is definitely wrong is number 1.

    As has been said, there's not really any such thing as a Unique Key in T-SQL.

    'List all the differences...' - there...

  • RE: Outer join with condition

    Hugo Kornelis (12/27/2012)


    I'm bad at pictures, so how about a step-by-step description of the query evaluation?

    Thanks for the explanation, I should have gone through it step by step just like...

  • RE: Divide by zero

    I really like the question - you had to carefully go through each example to get the right answers - shame about the 'choose 2' cock-up but it did make...

  • RE: IDENTITY INSERT

    I like this question, as you can work it out with a bit of thought but it doesn't take all day. And I learnt something new. Thank you!

    🙂

  • RE: Renaming a procedure

    Hugo Kornelis (12/12/2012)


    As happens more often with a Question of the Day: Good idea, but badly executed.

    If you exactly follow the instructions, executing the 'alter proc' script after making the...

  • RE: STUFF - 2

    More STUFFing - it must be nearly Christmas. Thanks for the question.

  • RE: Aggregates

    Toreador (12/6/2012)


    Hugo Kornelis (12/6/2012)


    Exactly WHAT is aggregated by the GROUPING_ID function??

    That's exactly the conversation I had with myself. Was this a trick question or not? In the end I went...

  • RE: LIKE a vowel

    So to correctly test for just those characters should you use:

    @x IN ('a','e','i','o','u') ?

    Good question, an undocumented 'feature' that could lead to unexpected results.

  • RE: SQL

    Toreador (11/30/2012)


    Luckily I didn't not fail to get this wrong, but it wasn't easy due to all the double negatives.

    The correct answer to most of them is of course 'it...

  • RE: Thanksgiving 2012

    Example:

    DECLARE @meateater char(1)

    -- Change if you like to eat dead things

    SET @meateater = 'N'

    IF @meateater = 'N'

    SELECT STUFF('Free_delicious_turkeys',6,9,'all_the_poor')

    ELSE

    SELECT STUFF('Free_delicious_turkeys',1,4,'Eat_all_the')

    Happy Thanksgiving USA!

    Go Pats!

    Now back to work...

  • RE: Rounding question

    @hugo - Thank you for your comprehensive contributions - most educational! 🙂

Viewing 11 posts - 91 through 101 (of 101 total)