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
»
Testing Center
»
Question of the Day (QOD)
»
Question of the Day for 16 Dec 2005
Question of the Day for 16 Dec 2005
Rate Topic
Display Mode
Topic Options
Author
Message
Site Owners
Site Owners
Posted Tuesday, December 13, 2005 12:05 PM
SSChampion
Group: General Forum Members
Last Login: Friday, May 18, 2007 3:36 PM
Points: 10,040,
Visits: 1
Comments posted to this topic are about the Question of the Day for 16 Dec 2005 posted at http://www.sqlservercentral.com/testcenter/qod.asp?QuestionID=669.
Post #243903
Ramesh Mutyapu
Ramesh Mutyapu
Posted Tuesday, December 20, 2005 10:26 AM
SSC Rookie
Group: General Forum Members
Last Login: Monday, May 06, 2013 9:43 PM
Points: 31,
Visits: 78
Can someone explain it.
Post #245612
K. Brian Kelley
K. Brian Kelley
Posted Tuesday, December 20, 2005 10:38 AM
Keeper of the Duck
Group: Moderators
Last Login: Today @ 1:13 PM
Points: 6,584,
Visits: 1,790
Create yourself two columns. The first for @x, the second for @y. Follow through the program logic as if you were SQL Server. Keep track of what gets printed to the screen and what the values of @x and @y are. You'll see why the answer is what it is.
K. Brian Kelley, CISA, MCSE, Security+, MVP - SQL Server
Regular Columnist (Security), SQLServerCentral.com
Author of
Introduction to SQL Server: Basic Skills for Any SQL Server User
|
Professional Development blog
|
Technical Blog
|
LinkedIn
|
Twitter
Post #245619
malleswarareddy_m
malleswarareddy_m
Posted Saturday, March 13, 2010 5:55 AM
SSCommitted
Group: General Forum Members
Last Login: Today @ 7:51 AM
Points: 1,852,
Visits: 986
when x is 0 then y =10
when x is 1 then y =9.33
when x is 2 then y =8.66
when x is 3 then y =7.99
when x is 4 then y =7.32
when x is 5 then y=6.65
when x is 6 then y=5.98
so it will print up to 0,1,2,3,4,5.Because for x=5 the condition is satisfied.
Malleswarareddy
I.T.Analyst
MCITP(70-451)
Post #882347
kapil_kk
kapil_kk
Posted Tuesday, November 20, 2012 3:16 AM
Ten Centuries
Group: General Forum Members
Last Login: Sunday, May 19, 2013 11:16 PM
Points: 1,061,
Visits: 1,151
good one...
Post #1386781
« Prev Topic
|
Next Topic »
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.