January 26, 2013 at 12:33 pm
Comments posted to this topic are about the item CHOOSE - 1
January 27, 2013 at 11:24 am
I'm guessing that since Fall is returning as least hires, that you need to have adventureworks to be able to answer this question correctly.
January 27, 2013 at 10:15 pm
Thanks Ron for another one on SS 2012.
Though I understood the CHOOSE function well, but have to query Employee table to get the answer correctly.
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
January 27, 2013 at 10:20 pm
Lokesh Vij (1/27/2013)
Thanks Ron for another one on SS 2012.Though I understood the CHOOSE function well, but have to query Employee table to get the answer correctly.
Ya , without Employee table it's all a guess work ..
Thanks for the question , It reminded me how Choose works ...
~ demonfox
___________________________________________________________________
Wondering what I would do next , when I am done with this one :ermm:
January 28, 2013 at 12:27 am
demonfox (1/27/2013)
Lokesh Vij (1/27/2013)
Thanks Ron for another one on SS 2012.Though I understood the CHOOSE function well, but have to query Employee table to get the answer correctly.
Ya , without Employee table it's all a guess work ..
Thanks for the question , It reminded me how Choose works ...
+1
January 28, 2013 at 12:53 am
Apparently, there are 4 winter months? π
Anyway, I don't have AdventureWorks 2012 installed on this machine, so I had to guess. Quite a pity, because the idea of the question was good.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
January 28, 2013 at 1:48 am
Among all the choices of the features, you chose CHOOSE, and chosen one you chose was the only choice you had, and in that we have to choose 2 among 8 choices, and two choices I chose were correct.
Nicely framed question using the sample db. π
ww; Raghu
--
The first and the hardest SQL statement I have wrote- "select * from customers" - and I was happy and felt smart.
January 28, 2013 at 1:54 am
This was removed by the editor as SPAM
January 28, 2013 at 2:30 am
Don't have AdventureWorks either... π
Best Regards,
Chris BΓΌttner
January 28, 2013 at 2:34 am
I don't see what this QotD is trying to test... It's not about how CHOOSE works but what data you have in a table that is not represented on the question itself...
how can anybody come up with the right answer without executing the query (against the right db)??
obviously I didn't, I just followed the logic that of there are more months for winter and less for spring, those should've been the correct answers.
didn't like it.
January 28, 2013 at 2:52 am
raulggonzalez (1/28/2013)
I don't see what this QotD is trying to test... It's not about how CHOOSE works but what data you have in a table that is not represented on the question itself...how can anybody come up with the right answer without executing the query (against the right db)??
obviously I didn't, I just followed the logic that of there are more months for winter and less for spring, those should've been the correct answers.
didn't like it.
+1
:w00t:
January 28, 2013 at 2:54 am
I know how CHOOSE works, but I do not want to know what the default data are for the table Employ!
Let's go!
January 28, 2013 at 3:16 am
Koen Verbeeck (1/28/2013)
Apparently, there are 4 winter months? πAnyway, I don't have AdventureWorks 2012 installed on this machine, so I had to guess. Quite a pity, because the idea of the question was good.
+1, exactly my sentiment. Shame, because it would have been a really good question.
January 28, 2013 at 4:08 am
Jan Van der Eecken (1/28/2013)
Koen Verbeeck (1/28/2013)
Apparently, there are 4 winter months? πAnyway, I don't have AdventureWorks 2012 installed on this machine, so I had to guess. Quite a pity, because the idea of the question was good.
+1, exactly my sentiment. Shame, because it would have been a really good question.
Agree - good otherwise Ron
-------------------------------Posting Data Etiquette - Jeff Moden [/url]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
January 28, 2013 at 4:09 am
Tough I applaud the effort to create questions on new SQL2012 functionality, I really see nothing positive about this question.
First, without AdventureWorks2012 it's impossible to answer the question. True, everyone can download that sample database - but if you doon't have SQL Server 2012, will it even install? I never tried, but I doubt it. And if you use an older version of AdventureWorks, you can't be sure that the data is identical.
Second, even with an AdventureWorks2012 database, it is still almost impossible to answer without running the code. There are 290 rows in the Employee table. Do you really expect me to go over them by hand and count the months from all the hiredate values?
And if I just run the code, it kind of defeats the purpose of learning about the Choose function.
Third, I don't understand the uneven distribution of months in the CHOOSE function. I know Ron long enough to trust that he didn't deliberately make this into a trick question, but it has turned out that way - with four months being assigned to winter and only two to spring, I am not surprised to see a high percentage of people choosing "most in winter / least in spring". If I had not had access to AdventureWorks (and hence been forced to guess), I would have picked that combination too, based on the season list in the CHOOSE function.
This question would have been so much better if it had been based on a much lower number of rows that were included in the question (so that you could just count the results by hand). Lost opportunity - too bad!
Viewing 15 posts - 1 through 15 (of 55 total)
You must be logged in to reply to this topic. Login to reply