July 21, 2012 at 12:05 pm
Comments posted to this topic are about the item Literal Dates
____________________________________________________
Deja View - The strange feeling that somewhere, sometime you've optimised this query before
How to get the best help on a forum
http://www.sqlservercentral.com/articles/Best+Practices/61537July 21, 2012 at 6:51 pm
July 22, 2012 at 9:30 pm
Good question dude.. I got something today.. Expecting these types of more questions from you.. Thanks..
July 23, 2012 at 12:06 am
Selected the right answer, then changed my mind. Damn you Monday!
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 23, 2012 at 1:09 am
This was removed by the editor as SPAM
July 23, 2012 at 3:08 am
This is why I always write date literals in the form 'yyyymmdd' without separators.
Getting others to realise the importance of doing so is another story.
July 23, 2012 at 3:17 am
Great question for a Monday, not too easy to get the brain matter warmed up, thanks.
_____________________________________________________________________
[font="Comic Sans MS"]"The difficult tasks we do immediately, the impossible takes a little longer"[/font]
July 23, 2012 at 6:28 am
Thanks for the question Mark! I got the right answer for the wrong reason, so I benefited doubly from the question - got rid of bad data and replaced it with good.
[font="Verdana"]Please don't go. The drones need you. They look up to you.[/font]
Connect to me on LinkedIn
July 23, 2012 at 6:57 am
craig 81366 (7/23/2012)
This is why I always write date literals in the form 'yyyymmdd' without separators.Getting others to realise the importance of doing so is another story.
+1
July 23, 2012 at 7:17 am
craig 81366 (7/23/2012)
This is why I always write date literals in the form 'yyyymmdd' without separators.Getting others to realise the importance of doing so is another story.
+1
Thanks for the great question, Mark-101232!
July 23, 2012 at 7:35 am
Thanks for the QotD, it's a good refresher on the behavior differences between DATETIME and DATE datatypes.
Cheers,
Andre Ranieri
July 23, 2012 at 8:21 am
Good question but I couldn't see the difference in the 2 date formats and selects until well into my second cup of coffee.
July 23, 2012 at 9:49 am
Seems very similar to another we had recently.
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
July 23, 2012 at 9:52 am
Great warmup for reality. Engaged mind before answered and +1.
Thanks!
Not all gray hairs are Dinosaurs!
July 23, 2012 at 10:04 am
tks for the question - cheers
Viewing 15 posts - 1 through 15 (of 23 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy