Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by Arup Chakraborty
»
Predict output
56 posts, Page 6 of 6
««
«
2
3
4
5
6
Predict output
Rate Topic
Display Mode
Topic Options
Author
Message
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Friday, January 29, 2010 9:56 AM
SSC-Dedicated
Group: Administrators
Last Login: Today @ 5:09 AM
Points: 31,526,
Visits: 13,864
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:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #856217
srinivas.thadem
srinivas.thadem
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
Fatal Exception Error
Fatal Exception Error
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
Peter Trast
Peter Trast
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 Trast
Microsoft Certified ...(insert many literal strings here)
Microsoft Design Architect with Alexander Open Systems
Post #883544
Paul White
Paul White
Posted Tuesday, March 30, 2010 10:32 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 10:48 AM
Points: 10,990,
Visits: 10,578
Liked the use of TRY...CATCH (though checking XACT_STATE would be cool).
Disliked the loop.
On balance: not bad.
Paul White
SQL Server MVP
SQLblog.com
@SQL_Kiwi
Post #893032
Welsh Corgi
Welsh Corgi
Posted Thursday, November 24, 2011 2:07 PM
Hall of Fame
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 6:19 AM
Points: 3,833,
Visits: 4,052
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
« Prev Topic
|
Next Topic »
56 posts, Page 6 of 6
««
«
2
3
4
5
6
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.