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

 Predict output Rate Topic Display Mode Topic Options
Author
 Message
 Posted Tuesday, February 2, 2010 1:18 AM
 Forum Newbie Group: General Forum Members Last Login: Tuesday, February 2, 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 3, 2010 6:44 AM
 SSC-Enthusiastic Group: General Forum Members Last Login: Tuesday, June 3, 2014 7:31 AM Points: 155, Visits: 386
 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, June 13, 2014 3:03 PM Points: 594, Visits: 655
 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
 SSCrazy Eights Group: General Forum Members Last Login: Friday, November 11, 2016 6:39 AM Points: 9,932, Visits: 11,346
 Liked the use of TRY...CATCH (though checking XACT_STATE would be cool).Disliked the loop.On balance: not bad. Paul WhiteSQLPerformance.comSQLblog.com@SQL_Kiwi
Post #893032
 Posted Thursday, November 24, 2011 2:07 PM
 SSCertifiable Group: General Forum Members Last Login: Thursday, December 1, 2016 9:02 AM Points: 5,061, Visits: 4,841
 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