Catch this!

  • Comments posted to this topic are about the item Catch this!

  • Good one, thanks.

    ---------------------------------------------------
    "Thare are only 10 types of people in the world:
    Those who understand binary, and those who don't."

  • i caught two points 😛

  • Easy one...

  • Awesome questions, thanks.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • lol.. I got this by accident.. I was assuming a print function won't fail the query and didn't even notice the string is longer than 15 chars.

  • Good one.... with nice twist... Thank you for the post.

    ww; Raghu
    --
    The first and the hardest SQL statement I have wrote- "select * from customers" - and I was happy and felt smart.

  • good one

  • pmadhavapeddi22 (4/10/2014)


    good one

    My compliments on the twist at the end. Thanks.

  • Guess I'll be the first to say that the "twist" was not appropriate. The question was titled and about the TRY...CATCH structure in SQL Server, the string length was a "Gotcha!" in an ISNULL statement.

    Who cares about points though?

  • venoym (4/10/2014)


    Guess I'll be the first to say that the "twist" was not appropriate. The question was titled and about the TRY...CATCH structure in SQL Server, the string length was a "Gotcha!" in an ISNULL statement.

    Who cares about points though?

    If the knowledge you need to get every question right is obvious by the title, you are actually making questions easier.

    My only problem with the question is that although the trick is cool, it also means people can get it right by accident, making the people who made 2 mistakes outperform those who made only one.

  • venoym (4/10/2014)


    Guess I'll be the first to say that the "twist" was not appropriate. The question was titled and about the TRY...CATCH structure in SQL Server, the string length was a "Gotcha!" in an ISNULL statement.

    Who cares about points though?

    I would not use your presumed approach to maintain code in the wild.

    The comments at the top of a code-block may say what the code is "supposed" to do. But that does not mean I can go blindly into the code thinking that in fact is what the code is doing. I still have the responsibility to understand every line from top to bottom not just one particular section or another.

    It's definitely a tricky question but at least all the information needed is provided. Congratulations to the author!

  • great QOTD.

    thanks Auke.

  • Thanks Auke. This is a good question.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • Nice and easy - thank you, Auke!

Viewing 15 posts - 1 through 15 (of 25 total)

You must be logged in to reply to this topic. Login to reply