Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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: Sunday, January 4, 2015 7:55 AM
Points: 5,333, Visits: 25,280
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
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 4:29 PM
Points: 1,225, Visits: 3,297
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, May 11, 2016 7:35 AM
Points: 1,378, Visits: 1,579
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: Thursday, August 25, 2016 3:41 PM
Points: 1,141, Visits: 1,184
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
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, March 4, 2016 7:14 AM
Points: 2,130, Visits: 834
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


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Wednesday, August 24, 2016 1:36 AM
Points: 15,289, Visits: 13,074
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 SQLKover.

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


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 5:12 AM
Points: 1,559, Visits: 2,933
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.
Post #1412241
Posted Monday, January 28, 2013 1:54 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 6:52 AM
Points: 5,216, Visits: 6,936
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, December 1, 2015 6:09 AM
Points: 2,891, Visits: 3,889
Don't have AdventureWorks either...

Best Regards,
Chris Büttner
Post #1412270
Posted Monday, January 28, 2013 2:34 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: Friday, July 22, 2016 7:34 AM
Points: 877, Visits: 1,326
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