Forum Replies Created

Viewing 15 posts - 106 through 120 (of 129 total)

  • RE: ORDER BY

    I feel disgusting, flogging such a long-dead horse, but I can't resist:

    Mode 90 SQL2005 implements SQL correctly therfore the correct answer is (d)!

    The accuracy of the answer does not depend...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: ORDER BY

    This is actually much cooler than it looks - a poster above noted this but I did not understand until I tested...

    If you specify a column alias that matches...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: ORDER BY

    For SQL Server 2000, none of the answers are quite correct, because the closest answer (A) misses the fact that the column is not just at the start, but also...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Common Table Expressions

    Thanks GSquared - this makes sense to me.

    I don't think I agree about the clarity of using CTEs for derived tables, but I guess that might be because I...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Common Table Expressions

    I see the value of CTEs, but I'm not sure I agree with the example... wouldn't it be better written (more efficient?) using a single aggregate query and a TOP...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Operators

    the question could possibly be more interesting (at least to some readers) if the result of the division was not so obviously an integer, eg:

    select 25 / 6 + 6...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Keyword Searching in SQL Server

    This is a brilliant concept, and I'm amazed I have not seen it anywhere else!

    There are some known issues with full-text search:

    - when searching, you need to look for...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Question of the Day for 28 Jun 2007

    incidentally, not having the sponsored book, I was using this as reference:

    http://www.microsoft.com/technet/prodtechnol/sql/2005/recomp.mspx#EXIAG

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Question of the Day for 28 Jun 2007

    OK, I'm a little confused... does an "IN" clause with only a single argument not count as an "IN" clause for the purposes of auto-parameterization? I got the answer right...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Question of the Day for 07 May 2007

    The "Right" answer is apparently a little misleading here... According to BOL, there would be entries in the DMV, they would just have all counters set to 0.

    http://msdn2.microsoft.com/en-us/library/ms188755.aspx

    Effectively, this...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Finding Gaps in a Sequential Number Sequence

    Hi,

    I'm a latecomer to the party and didn't realize there had already been healthy debate, but here's what I came up with.

    Looking through the previous submissions above, it's the same...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Question of the Day for 12 Jun 2006

    Not sure I agree with this question/answer - all we know is that the flat file contains integers - does it say anywhere that those numbers are not formatted in...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Question of the Day for 24 May 2006

     
    Partial Doc (does not mention XML datatype at all as far as I can see):
     
    (Unofficial) Confirmation regarding XML datatype [edit: I had the wrong link]:
     
     

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Question of the Day for 23 May 2006

    Given the wording of the question (use of "necessarily"), the answer given is simply wrong.
     
    Processing instructions and comments can be considered content, and can definitely be outside the root...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

  • RE: Question of the Day for 02 May 2006

    Not just you.

    As far as I can tell, the "Question of the Day" has gone all to pot in the last week or two. I'm giving it a break...

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.

Viewing 15 posts - 106 through 120 (of 129 total)