Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12345»»»

Type conversions and Nulls Expand / Collapse
Author
Message
Posted Monday, February 4, 2013 8:25 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:42 AM
Points: 7,851, Visits: 9,602
Comments posted to this topic are about the item Type conversions and Nulls

Tom
Post #1415558
Posted Monday, February 4, 2013 8:27 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, November 6, 2014 1:00 PM
Points: 5,333, Visits: 25,277
L' Eomot Inversé

nice question .. glad to see you contributing to the QOD to allow others to learn what you can teach.


If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Post #1415559
Posted Monday, February 4, 2013 9:31 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, July 31, 2014 7:15 PM
Points: 1,129, Visits: 1,163
bitbucket-25253 (2/4/2013)
L' Eomot Inversé

nice question .. glad to see you contributing to the QOD to allow others to learn what you can teach.


+1

thanks for the question Tom ..



~ demonfox
___________________________________________________________________
Wondering what I would do next , when I am done with this one
Post #1415563
Posted Monday, February 4, 2013 10:43 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, October 16, 2014 10:02 AM
Points: 1,372, Visits: 1,566
Thanks Tom!
Really appreciate the way solution is explained.


~ Lokesh Vij

Guidelines for quicker answers on T-SQL question
Guidelines for answers on Performance questions

Link to my Blog Post --> www.SQLPathy.com

Follow me @Twitter

Post #1415574
Posted Monday, February 4, 2013 11:22 PM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, November 19, 2014 10:38 AM
Points: 386, Visits: 366
So many back to basics in such a short question.


--------------------------------------------------------------------------------------
Hai Ton
My Db4Breakfast blog.
Post #1415580
Posted Monday, February 4, 2013 11:43 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, November 18, 2014 6:12 PM
Points: 367, Visits: 1,080
I got it right, but I wish the date wasn't April Fools day -- it adds a bit of "meta" distraction to the question.

Is it ha, ha fooled you if you pick it, or ha, ha should have picked this? Either way, an unwelcome distraction from an otherwise nice question.

PS There was some sort of typo or word missing trom the explanation.
Post #1415584
Posted Monday, February 4, 2013 11:45 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, November 18, 2014 5:30 AM
Points: 971, Visits: 564
Nice one Tom.

Tom I need ask you one thing.

Is there any collation setting to affect the result of today's question ?


--
Dineshbabu
Desire to learn new things..
Post #1415585
Posted Tuesday, February 5, 2013 12:43 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 7:43 AM
Points: 1,029, Visits: 2,336
Awesome, thank you Tom.

(up until now never knew this, all the time i used simple case.... even though BOL has mentioned this clearly i never looked it properly OR may-be I never cared much....)


ww; Raghu
--
The first and the hardest SQL statement I have wrote- "select * from customers" - and I was happy and felt smart.
Post #1415616
Posted Tuesday, February 5, 2013 1:02 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 7:43 AM
Points: 1,029, Visits: 2,336
Dineshbabu (2/4/2013)
...Is there any collation setting to affect the result of today's question ?


(well, to my knowledge understanding, I don't think precedence change according to the collation, and I think the mention of the collation - creates a thought that - even though the output format is given as "date" the format is not as expected, so possible we start to wonder there must be some kind of overriding or in the settings... but it is just a precedence and the case statement dealing with the boolean expression)


ww; Raghu
--
The first and the hardest SQL statement I have wrote- "select * from customers" - and I was happy and felt smart.
Post #1415622
Posted Tuesday, February 5, 2013 1:31 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Yesterday @ 2:07 AM
Points: 4,100, Visits: 5,456
Good question, thanks Tom

____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1415639
« Prev Topic | Next Topic »

Add to briefcase 12345»»»

Permissions Expand / Collapse