data type precedence!

  • Comments posted to this topic are about the item data type precedence!

  • "In SQL Server 2005, which of these data types have the highest and lowest precedence respectively?"

    Yet another example of an abysmally worded question.

    This question MUST have two answers, but we could tick only one.

    The word "respectively" is not only superfluous but is also a distraction.

    Can we PLEASE have more thorough editing of questions.

    Thankyou.

    Kenneth Spencer

    You never know: reading my book: "All about your computer" might just tell you something you never knew!
    lulu.com/kaspencer

  • I have to agree...

    respective to the first answer, the second has a lower order of precedence for both answer 1, and 2... because user defined is the top... and char/binary are both lower in precedence...

    The other three are in reverse order of precedence so they're wrong.

    I got it right by guessing, but both of the first two answers are correct with respect to themselves 😛



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • Keep in mind the question asked for highest and lowest respectively. If construed differently than the highest possible and then the lowest possible datatypes; we would still have to look at the largest difference in precedence that could be surmised by the precedence order.

    http://msdn.microsoft.com/en-us/library/ms190309(SQL.90).aspx

    Reading this question and then looking at the answers, we can see that each answer had two datatypes listed - thus respectively in those answers the first would be highest and the second would be lowest.

    Pretty straight forward question and answer.

    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

  • CirquedeSQLeil (8/24/2009)


    Keep in mind the question asked for highest and lowest respectively. If construed differently than the highest possible and then the lowest possible datatypes; quote]

    What you don't know won't hurt you but what you know will make you plan to know better
  • hey, this was tricky one!



    [font="System"]Bhavesh Patel[/font]

    http://bhaveshgpatel.wordpress.com/
  • I knew about that user-defined data types was the highest and I would have bet a lot that char was lower than binary...

    Well, that just proove that there are some days that you might be wrong, even if you are certain à 200%!!

    Thanks for the question. I learned again 😀

Viewing 7 posts - 1 through 6 (of 6 total)

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