Recent PostsRecent Posts Popular TopicsPopular Topics
 Home Search Members Calendar Who's On

 Predict output Rate Topic Display Mode Topic Options
Author
 Message
 Posted Friday, January 29, 2010 9:56 AM
 SSC-Dedicated Group: Administrators Last Login: Yesterday @ 4:21 PM Points: 32,321, Visits: 14,575
 The answer is arguably correct since an exception occurs and is handled in the code. The order of what appears, and where, depends on your client.The question has been edited to separate out "results" and "messages" Follow me on Twitter: @way0utwestForum Etiquette: How to post data/code on a forum to get the best help
Post #856217
 Posted Tuesday, February 02, 2010 1:18 AM
 Forum Newbie Group: General Forum Members Last Login: Tuesday, February 02, 2010 1:13 AM Points: 4, Visits: 2
 I really disagrree with the answer 1245.the actual resul it is 12345.if @i = 3 then we are setting J = @i/0;so there no use of this statement finally we are storing the i value in to the temparory table.
Post #857763
 Posted Wednesday, February 03, 2010 6:44 AM
 SSC-Enthusiastic Group: General Forum Members Last Login: Monday, May 13, 2013 8:14 AM Points: 154, Visits: 380
 srinivas.thadem (2/2/2010)I really disagrree with the answer 1245.the actual resul it is 12345.if @i = 3 then we are setting J = @i/0;so there no use of this statement finally we are storing the i value in to the temparory table.You can't divide by 0.... unless your name is Chuck Norris.
Post #858600
 Posted Monday, March 15, 2010 10:36 PM
 Mr or Mrs. 500 Group: General Forum Members Last Login: Friday, March 15, 2013 10:35 AM Points: 594, Visits: 654
 I like to think of the right answer as being the one "closest" to being right, which was the right answer which I chose despite knowing that the output did not look exactly correct but could not possibly be the other choices in any order.Another good exercise for the kiddies in class! Keep those QOTD's coming! Peter TrastMicrosoft Certified ...(insert many literal strings here)Microsoft Design Architect with Alexander Open Systems
Post #883544
 Posted Tuesday, March 30, 2010 10:32 AM
 SSChampion Group: General Forum Members Last Login: 2 days ago @ 11:12 PM Points: 11,054, Visits: 10,836
 Liked the use of TRY...CATCH (though checking XACT_STATE would be cool).Disliked the loop.On balance: not bad. Paul WhiteSQL Server MVPSQLblog.com@SQL_Kiwi
Post #893032
 Posted Thursday, November 24, 2011 2:07 PM
 Hall of Fame Group: General Forum Members Last Login: Wednesday, December 04, 2013 6:53 AM Points: 3,913, Visits: 4,118
 A poorly worded trick question. For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1211740

 Permissions