August 24, 2009 at 12:27 am
Comments posted to this topic are about the item data type precedence!
August 24, 2009 at 8:40 am
"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
August 24, 2009 at 10:45 am
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 😛
August 24, 2009 at 6:07 pm
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
November 3, 2009 at 1:28 am
CirquedeSQLeil (8/24/2009)
November 20, 2009 at 10:43 pm
hey, this was tricky one!
March 17, 2011 at 6:51 pm
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