Forum Replies Created

Viewing 15 posts - 196 through 210 (of 234 total)

  • RE: Multi-statement execution

    Very nice question. Nice SQL inject with a side effect.

    I hope I will never use something like this one.

  • RE: Rowcount

    bitbucket-25253 (2/1/2010)


    What we do not know is how many answer incorrectly, and do NOT post a moan and groan, but DO LEARN something which in the future will be of...

  • RE: Rowcount

    Christian Buettner-167247 (2/1/2010)


    Well, you got me - I confess - I cheated at least once in the QotDs.

    But that is probably true for most of us - sometimes we just...

  • RE: Rowcount

    paul.goldstraw (2/1/2010)


    It seems to be happening more and more at the moment and it makes me wonder how many of the people who get the answer right in any QotD...

  • RE: Rowcount

    danemery (1/29/2010)


    If one has to connect first in order to to run the t-sql statements, the correct answer should be 1,1. If a theoretical question is being asked with no...

  • RE: Rowcount

    bitbucket-25253 (1/29/2010)


    I would add to kaspencer's statement, the following addition: test, test and test again your proposed submission before submitting. Let a few days pass and retest,...

  • RE: Rowcount

    kaspencer (1/29/2010)


    And Editors: how about fining the writers of bad questions - demoting them by two ranks eh? That'll teach 'em!

    And back again: What about trying the script by editors?...

  • RE: Rowcount

    As to suggestions about trying against different versions, bear in mind that the question might have been contributed by someone without easy access to anything above 2000 or may have...

  • RE: Rowcount

    And what about the answer "Any number, 1" or better "Nonnegative number, 1".

    This is correct in all situations and after any scripts run in the past by the same connection.

  • RE: Rowcount

    Just another QotD with correct answer that is correct only in some settings.

    I wrote only one question (I am lazy), but I tried the script on more versions of SQL...

  • RE: Query cost

    mike.anderson 52709 (1/27/2010)

    Trying this out, I still get execution plans that are on the face of it identical (they must be different, because the result sets are different); the cost...

  • RE: Query cost

    mike.anderson 52709 (1/27/2010)


    honza.mf (1/27/2010)


    CirquedeSQLeil (1/27/2010)


    honza.mf (1/27/2010)


    I answered OK, but...

    The first variant with IN can be more effective, it allways depend on data. Compare two queries without any knowledge about structure...

  • RE: Query cost

    CirquedeSQLeil (1/27/2010)


    honza.mf (1/27/2010)


    I answered OK, but...

    The first variant with IN can be more effective, it allways depend on data. Compare two queries without any knowledge about structure of tables, indexes,...

  • RE: Query cost

    I answered OK, but...

    The first variant with IN can be more effective, it allways depend on data. Compare two queries without any knowledge about structure of tables, indexes, possible data...

  • RE: SELECT @local_variable

    vk-kirov (12/14/2009)


    In SQL Server, an empty string and a NULL value are not the same.

    As far as I know, NULLs and empty strings are equal in Oracle. But in SQL...

Viewing 15 posts - 196 through 210 (of 234 total)