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»»»

CHOOSE - 1 Expand / Collapse
Author
Message
Posted Saturday, January 26, 2013 12:33 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 10:17 AM
Points: 5,472, Visits: 23,533
Comments posted to this topic are about the item CHOOSE - 1

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 #1412062
Posted Sunday, January 27, 2013 11:24 AM
SSC Eights!

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

Group: General Forum Members
Last Login: Thursday, April 17, 2014 4:39 AM
Points: 818, Visits: 2,485
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.
Post #1412141
Posted Sunday, January 27, 2013 10:15 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, April 09, 2014 2:46 AM
Points: 1,371, Visits: 1,547
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

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 #1412177
Posted Sunday, January 27, 2013 10:20 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, April 09, 2014 9:03 PM
Points: 1,128, Visits: 1,161
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
Post #1412178
Posted Monday, January 28, 2013 12:27 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, November 20, 2013 4:08 AM
Points: 1,849, Visits: 775
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


Regards,
Rals
.
Post #1412208
Posted Monday, January 28, 2013 12:53 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 4:35 AM
Points: 12,208, Visits: 9,172
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.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1412217
Posted Monday, January 28, 2013 1:48 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: 2 days ago @ 10:45 AM
Points: 673, Visits: 1,551
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
--
There are only 10 types of people in the world, those who understand binary, and those who don't.

Note: (as of now) only.. 1 and 4 applies (i am on my way...)
Post #1412241
Posted Monday, January 28, 2013 1:54 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: 2 days ago @ 6:40 AM
Points: 3,683, Visits: 4,818
Interesting question, thanks, Ron

____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1412243
Posted Monday, January 28, 2013 2:30 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, April 15, 2014 7:19 AM
Points: 2,814, Visits: 3,851
Don't have AdventureWorks either...

Best Regards,
Chris Büttner
Post #1412270
Posted Monday, January 28, 2013 2:34 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Thursday, April 17, 2014 11:30 AM
Points: 523, Visits: 768
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.
Post #1412274
« Prev Topic | Next Topic »

Add to briefcase 12345»»»

Permissions Expand / Collapse