November 24, 2014 at 8:43 pm
Comments posted to this topic are about the item In The Beginning
November 25, 2014 at 12:50 am
Nice and easy, thanks.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
November 25, 2014 at 12:54 am
Extremely easy!
Thanks!
November 25, 2014 at 1:43 am
Easy one. Thank you for the question.
November 25, 2014 at 2:25 am
Maybe add to the explanation that SMALLDATETIME is 1900-01-01.
Maybe some people doesn't know the ranges are different
November 25, 2014 at 2:33 am
It'd be good if the explanation included the reason for such a seemingly random year of 1753. 🙂
For those that may not know, it is because of the move from the Julian Calendar to the Gregorian calendar in 1752 saw 11 days in September never occur. Because of this, SQL would not reliably/accurately calculate dates prior to 1753 (without some extensive development).
http://www.projectbritain.com/calendar/january/lostdays.html
November 25, 2014 at 2:50 am
Nice question, thank you.
November 25, 2014 at 2:57 am
Kev T (11/25/2014)
For those that may not know, it is because of the move from the Julian Calendar to the Gregorian calendar in 1752 saw 11 days in September never occur.
Of course, that date only applies to the British Empire--the Gregorian calendar was actually introduced in 1582, but different countries introduced it at different times; Greece didn't adopt it until 1923!
November 25, 2014 at 2:59 am
Kev T (11/25/2014)
For those that may not know, it is because of the move from the Julian Calendar to the Gregorian calendar in 1752 saw 11 days in September never occur. Because of this, SQL would not reliably/accurately calculate dates prior to 1753 (without some extensive development).
http://www.projectbritain.com/calendar/january/lostdays.html%5B/quote%5D
+1 for the information
November 25, 2014 at 3:55 am
This was removed by the editor as SPAM
November 25, 2014 at 3:58 am
Thanks Paul, how interesting! I wonder how this is handled in Greece with regards to big data and historical records, or if they forgone the lost days somehow.
November 25, 2014 at 5:40 am
I could see why so many people answered 1/1/1900, based on the phrasing of the question. If you assign 0 to a datetime, that's the date you'll get in return.
November 25, 2014 at 6:33 am
That's exactly what I did. I had no idea I could use a negative number for a datetime!
November 25, 2014 at 6:35 am
I think this is a good question about the fundamentals of datetime. It consistently surprises me how people don't get a very simple concept. They honestly believe it's a validated string and stored that way. Anyway, thanks for a nice, simple question. I'm surprised it hasn't sparked too much debate yet. Then again, the thread is still young.
November 25, 2014 at 6:44 am
I could swore that it was sometime in 1975?
Viewing 15 posts - 1 through 15 (of 39 total)
You must be logged in to reply to this topic. Login to reply