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: Thursday, September 18, 2014 7:50 PM
Points: 5,322, Visits: 25,235
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: Thursday, September 18, 2014 1:00 PM
Points: 1,020, Visits: 3,073
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: Tuesday, June 24, 2014 6:38 PM
Points: 1,371, Visits: 1,560
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, July 31, 2014 7:15 PM
Points: 1,129, Visits: 1,163
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: Tuesday, September 16, 2014 1:50 PM
Points: 1,904, Visits: 793
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: 2 days ago @ 8:29 AM
Points: 12,945, Visits: 10,716
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


SSC Eights!

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

Group: General Forum Members
Last Login: 2 days ago @ 10:37 AM
Points: 960, Visits: 2,184
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


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 @ 11:15 AM
Points: 3,964, Visits: 5,204
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: Wednesday, September 17, 2014 1:05 AM
Points: 2,842, Visits: 3,875
Don't have AdventureWorks either...

Best Regards,
Chris Büttner
Post #1412270
Posted Monday, January 28, 2013 2:34 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Wednesday, September 17, 2014 2:29 PM
Points: 614, Visits: 890
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