Forum Replies Created

Viewing 15 posts - 346 through 360 (of 479 total)

  • RE: Sort Order - Include Null al last

    Glad to see I'm not alone in deciding immediately that answer #3 with DateOfLeaving DESC wouldn't put the dates in the right order so is definitely wrong, irrespective of where...

  • RE: ANY

    I think the explanation of the answer is wrong. It says

    If any value meets these criteria, then TRUE is returned to the IF statement and it is true in this...

  • RE: Text Column Updates

    Anirban Paul (6/16/2008)


    Guys be happy wrong answer also gives you point sometimes.....;)

    But the problem is that if someone reads this QOD and answer, without reading the discussion, and then tries...

  • RE: Text Column Updates

    I got this right because I knew UPDATETEXT and WRITETEXT were deprecated, but didn't realise that UPDATE SET ... .WRITE ... doesn't actually work with TEXT datatypes.

    /*------------------------

    create table #t (xx...

  • RE: Friday the 13th

    I think 6 point for this was a bit much since I beleive the correct answer should have been 'None of the above', but I had to enter one answer.

    1....

  • RE: A Worthwhile Goal

    This thread is getting so long I had to go back and check what the original question was! 🙂

    What's more important: quality or consistency?

    The definition of quality that I've always...

  • RE: Function execution

    webrunner (5/20/2008)


    James Goodwin (5/20/2008)


    Declare @Tmp varchar(10)

    set @Tmp = '20080520ABCDEF'

    select CAST(@tmp as datetime)

    webrunner,

    Change that to varchar(8) and it will work.

    '20080520AB' cannot be converted to a date, but...

  • RE: Function execution

    webrunner (5/20/2008)


    Christopher Stobbs (5/20/2008)


    I don't think it's a glitch either.

    Like most people are saying the VARCHAR(10) can only hold 10 so SQL is correct in truncating it!!!:D

    SQL may be correct...

  • RE: Function execution

    GSquared (5/20/2008)


    Derek Dongray (5/20/2008)


    If T-SQL allowed VARCHAR(*) in the declaration, you could declare a UDF which would accept a VARCHAR of any size without truncating it and it wouldn't need...

  • RE: Function execution

    I got this wrong, because I didn't stop and think, as I've actually encountered it in the past and now always declare VARCHAR parameters as larger than I expect.

    Of course,...

  • RE: Impersonation in an Execute As statement

    davidthegray (5/15/2008)


    I wonder why, although I chose the correct answer (I doublechecked with the back button), it says "You are wrong". And the precentages show total much more than 100%....

  • RE: Query

    Carla Wilson (5/14/2008)


    This syntax includes the WITH "CTE" syntax, and on this page, the SELECT statement shows the FROM clause as optional! Perhaps when CTEs were introduced in SQL...

  • RE: Query

    Matt Marston (5/14/2008)


    After looking at the execution plan it appears that SQL Server filtered the customer rows based on the WHERE clause of the subselect of the IN clause. This...

  • RE: Query

    I got this wrong, but it then took me some time to work out what the right answer meant. In fact, I still cannot understand it and would like someone...

  • RE: ORDER BY

    majorbloodnock (5/8/2008)


    I've just realised. If someone reports a SQL Server bug to Microsoft, they can post it as a QOTD to see how much of a problem it is....

    Question: You're...

Viewing 15 posts - 346 through 360 (of 479 total)