|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 5:34 AM
Points: 866,
Visits: 338
|
|
| Thanks for the easy QOTD!
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 1:11 PM
Points: 2,499,
Visits: 2,198
|
|
Easy point today - thanks Steve
------------------------------- Posting Data Etiquette - Jeff Moden Smart way to ask a question
There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan I would never join a club that would allow me as a member - Groucho Marx
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 1:43 AM
Points: 1,992,
Visits: 1,855
|
|
cengland0 (3/30/2012) This one was so easy that I was looking for the "trick." I kept look and looking but never found one so I finally submitted my answer. I was relieved to see that I got it right. The amount of tension waiting to see the "You got it right" message was overwhelming. +1 I do not like qotd too easy or without tricks.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 5:11 AM
Points: 1,168,
Visits: 1,470
|
|
Carlo Romagnano (3/30/2012)
cengland0 (3/30/2012) This one was so easy that I was looking for the "trick." I kept look and looking but never found one so I finally submitted my answer. I was relieved to see that I got it right. The amount of tension waiting to see the "You got it right" message was overwhelming.+1 I do not like qotd too easy or without tricks. 
I get paranoid when the question SEEMS too easy. Sometimes life really is that easy - strange but true.
Please don't go. The drones need you. They look up to you.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 7:09 AM
Points: 31,
Visits: 103
|
|
I guessed 2 because BETWEEN is inclusive, and then I tried to run it. I found out that I needed SQL Server 2008 compatibility, don't have that, only 2005, so I changed the VALUES clause to UNIONs, and the DATE to DATEtime, then fuond out I had to be logged in as dbo, don't have that either, so I took the dbo. off of the select, and then it returned two rows, voilà!
CREATE TABLE SalesDates (id INT, saledate DATEtime ); go INSERT INTO SalesDates SELECT 1, '2012/1/1' UNION SELECT 2, '2012/1/2' UNION SELECT 3, '2012/1/3' UNION SELECT 4, '2012/1/4' UNION SELECT 5, '2012/1/5' UNION SELECT 6, '2012/1/6'; go SELECT id FROM SalesDates s WHERE s.saledate NOT BETWEEN '2012/1/2' AND '2012/1/5'; go DROP TABLE SalesDates;
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 7:43 AM
Points: 1,372,
Visits: 894
|
|
Nice n easy question to finish off the week. It's one of those, "No, it can't be this easy" kind of questions. Always looking for the QotD trick, but there was none...this time. (Insert evil laugh in background here, 'Muhahahaha' ) Great question.
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

|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 11:06 PM
Points: 1,110,
Visits: 1,229
|
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Today @ 12:28 AM
Points: 563,
Visits: 60,243
|
|
| I am a little surprised at the number of people that got this wrong. Maybe they read it wrong or looked at it too quickly. This is a straight back to basics logic question. While yes I agree with the others I was a little hesitant since it seemed too easy. Thanks for the nice light thinking after a long week.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: 2 days ago @ 8:01 AM
Points: 989,
Visits: 1,795
|
|
| Amazing that we are nearly 20 comments in and no one complained about the date format regional issue. Of course, that might be because the results would be the same in other regions....
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Today @ 12:32 AM
Points: 18,854,
Visits: 12,439
|
|
|
|
|