|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 7:55 AM
Points: 2,582,
Visits: 3,552
|
|
Comments posted to this topic are about the item OUTPUT & NEWID()
______________________________________________________________________
Personal Motto: Why push the envelope when you can just open it?
If you follow the direction given HERE you'll likely increase the number and quality of responses you get to your question.
Jason L. Selburg
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 12:28 AM
Points: 2,170,
Visits: 3,583
|
|
Good question. Thanks
Mohammed Moinudheen
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 7:33 AM
Points: 5,103,
Visits: 20,213
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 5:03 AM
Points: 375,
Visits: 125
|
|
Hello,
I think the correct answer is none of the above, because the result can be 8 for example, and any of the above means the result must be 2 , 9 or 11 and not another value.
anywhere thanks for the question.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Monday, April 01, 2013 10:11 AM
Points: 576,
Visits: 27,680
|
|
I answered "None of the above". After getting the explanation I still claim I answered right. The question was "... how many rows are gauranteed ...", so answer "Any of the above", well, questionable.
Interesting question though
|
|
|
|
|
SSC-Insane
         
Group: General Forum Members
Last Login: Today @ 4:09 AM
Points: 21,357,
Visits: 9,539
|
|
| Echoing here... since you're talking about garanteed # of rows, none is the only possible answer.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 6:19 AM
Points: 1,879,
Visits: 205
|
|
Jeez, I hate it when the answer depends more on figuring out the author's intent in the answer than actually answering the question.
If the answer is any number of rows can be returned, then 2, 9, or 11 are NOT guaranteed.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 10:51 AM
Points: 1,219,
Visits: 13,507
|
|
great question! Initially, I analyzed the text in question and then I found the command's return is not fixed, after running it several times, really it can be any value according the correct answer.
rfr.ferrari DBA - SQL Server 2008 MCITP | MCTS
remember is live or suffer twice!
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 7:11 AM
Points: 317,
Visits: 619
|
|
Am I the only one who thinks "none of the above" is the correct response, because the script is so buggy it won't compile?
Unless I'm crazy you can't insert 'a' into the nDex field because nDex is an integer. When that script is copied to SSMS you get 3 incorrect sytax errors.
So the correct answer is "none of the above". :) Because it's *guaranteed* you won't get any return values!
|
|
|
|
|
SSC-Insane
         
Group: General Forum Members
Last Login: Today @ 4:09 AM
Points: 21,357,
Visits: 9,539
|
|
roger.plowman (4/25/2011) Am I the only one who thinks "none of the above" is the correct response, because the script is so buggy it won't compile?
Unless I'm crazy you can't insert 'a' into the nDex field because nDex is an integer. When that script is copied to SSMS you get 3 incorrect sytax errors.
So the correct answer is "none of the above". :) Because it's *guaranteed* you won't get any return values!
The insert will fail in 2k5, you have to change it to union alls... other than that the script will work (tho not as obviously intented and hence the question here)
|
|
|
|