• brewmanz (6/30/2008)


    The table is called 'TimeGroup' but the query is 'TimeGROUP'

    If the DB was case-sensitive, then the query would NOT find the table, unless there was ANOTHER table TimeGROUP - and the result of the query was *indeterminate* - not an option - so ...

    The DB must be Case-Insensitive !!

    QED - kind of

    <nitpicking>

    Except that it is perfectly possible to define a table with a case sensitive collation in a database with a case insensitive default collation...

    </nitpicking>

    However, I had no doubt whatsoever after reading the question that it was written without case sensitive collations in mind. The title of the question was "ALL", so it was clear that the author wanted to test understanding of this keyword, not ability to test some code by running it and then complaining if collations didn't match. I dare to state that anyone who really knows and understands the "ANY" keyword, should be able to answer this question correctly.

    (Edit - fixed the fake HTML tags)


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/