|
|
|
SSCrazy Eights
        
Group: General Forum Members
Last Login: Today @ 3:12 PM
Points: 8,957,
Visits: 8,523
|
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, June 13, 2013 9:46 AM
Points: 3,157,
Visits: 4,341
|
|
Tripped myself on this one. Thanks Tom, learned something today, so I guess that makes it worthwhile
____________________________________________ Space, the final frontier? not any more... All limits henceforth are self-imposed. “libera tute vulgaris ex”
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Today @ 3:33 PM
Points: 1,654,
Visits: 10,864
|
|
Excellent question, and great explanation! Thanks!
Rob Schripsema Accelitec, Inc
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 7:59 PM
Points: 1,491,
Visits: 3,010
|
|
How annoying. You made me think! ;)
I agree this was an excellent question and explanation. I do see that one minor correction could be needed to one example given, however. You say "...for example the numeric value 37.2 can be converted to an int (37)...". Did you actually mean that an INT (@i) could be converted to the higher precedence numeric type, as obviously could be the literal value 37.2? After all, the result of that coalesce is 37.2 and not 37.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 5:32 PM
Points: 3,508,
Visits: 2,588
|
|
| A really good QotD. Thanks, Tom!
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 2:21 AM
Points: 1,228,
Visits: 1,358
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, January 24, 2013 6:08 AM
Points: 28,
Visits: 136
|
|
thanks good and very tough question!
_______________________________________________________________ "The best way to prepare for programming is to write programs, and to study great programs that other people have written." – Bill Gates
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 12:13 AM
Points: 2,794,
Visits: 1,739
|
|
| Great question, must say. +1
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 8:45 PM
Points: 464,
Visits: 1,230
|
|
Interesting question, thank you Tom.
(even kind of knowing the output for each select statement, it tempted me to challenge self and to prove it)
ww; Raghu -- There are only 10 types of people in the world, those who understand binary, and those who don't.
Note: (as of now) only.. 1 and 4 applies (i am on my way...)
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 7:43 AM
Points: 1,372,
Visits: 894
|
|
Thanks for the great question Tom. It really made me think; there were so many choices and it was so early in the morning. I can definitely say I'm awake now.
Oh no, we're toast! I've got this. *Keyboard clatter* Woah, how'd you do that? I'm a DBA...Booyah
Yeah, uh huh, you know what it is. Everything I do, I do it big

|
|
|
|