SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


GO


Author
Message
Ninja's_RGR'us
Ninja's_RGR'us
SSC Guru
SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)

Group: General Forum Members
Points: 82045 Visits: 9671
dmoldovan (6/7/2011)
Ninja's_RGR'us (6/7/2011)
Did you guys actually read the question recently??? It says count(*).


A few hours ago it was "SELECT * FROM Test"


I know.

Question corrected.

Thanks for feedback.

Time for a work break! Hehe
Kiara
Kiara
SSC Eights!
SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)

Group: General Forum Members
Points: 963 Visits: 1426
Toreador (6/7/2011)
Can anyone who's said it's confusing, explain how any answer other than '50' could possibly be right? To answer '50' needs an assumption that they meant 'count(*)' rather than '*'. What similarly simple assumption couild make any of the other options correct?


I said the original set of answers was confusing - because there was no correct answer to the question. I generally don't object to using common sense in the QOTD, because I know how hard it is to word questions in a way that everyone interprets the same way.

But there's a significant difference between select * from test and select count(*) from test and the results that one receives from those two statements. I personally see no reason to guess at what the author intended to write, and don't have any problem with people who read the original question with the original answers scratching their heads in confusion.

-Ki
Kiara
Kiara
SSC Eights!
SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)SSC Eights! (963 reputation)

Group: General Forum Members
Points: 963 Visits: 1426
Richard Warr (6/7/2011)
Sadly, people would rather have a moan than cut the question setter a little slack. We all know what he meant to write so why not use that knowledge to tick the correct answer and move on with a bit of grace and humanity?


Obviously, we all did *not* know what the author meant to write. I haven't seen anyone being nasty in this thread - I've just seen confusion. Since when is expressing confusion showing a lack of grace and humanity?

-Ki
rsingh.sql
rsingh.sql
Old Hand
Old Hand (394 reputation)Old Hand (394 reputation)Old Hand (394 reputation)Old Hand (394 reputation)Old Hand (394 reputation)Old Hand (394 reputation)Old Hand (394 reputation)Old Hand (394 reputation)

Group: General Forum Members
Points: 394 Visits: 177
Like
Steve Jones
Steve Jones
SSC Guru
SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)

Group: Administrators
Points: 175062 Visits: 19494
My apologies. The question has been corrected with a count(*) instead of a SELECT *. I am sure that I saw 50 results in testing and let it go as "there were 50 rows", thinking the question was testing the "go 50" and you'd all be able to read the author's mind.

I will award back points as soon as my VPN is repaired.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Ninja's_RGR'us
Ninja's_RGR'us
SSC Guru
SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)

Group: General Forum Members
Points: 82045 Visits: 9671
Steve Jones - SSC Editor (6/7/2011)
My apologies. The question has been corrected with a count(*) instead of a SELECT *. I am sure that I saw 50 results in testing and let it go as "there were 50 rows", thinking the question was testing the "go 50" and you'd all be able to read the author's mind.

I will award back points as soon as my VPN is repaired.


Now what kind of holidays is that???

Back to the horses or I tell your wife Hehe.
chrisfradenburg
chrisfradenburg
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3392 Visits: 2078
Ninja's_RGR'us (6/7/2011)
Now what kind of holidays is that???

Back to the horses or I tell your wife Hehe.


I'm pretty sure he didn't ride horses down to Florida which is where I gather he is from his blog post. If he did, more props to him. That's a nice, long vacation.
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (79K reputation)SSC Guru (79K reputation)SSC Guru (79K reputation)SSC Guru (79K reputation)SSC Guru (79K reputation)SSC Guru (79K reputation)SSC Guru (79K reputation)SSC Guru (79K reputation)

Group: General Forum Members
Points: 79307 Visits: 18570
Thanks for the question.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

Peter Trast
Peter Trast
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1200 Visits: 655
Lucky guess and a great question! Smile Thanks! Cool function.

Peter Trast
Microsoft Certified ...(insert many literal strings here)
Microsoft Design Architect with Alexander Open Systems
Steve Jones
Steve Jones
SSC Guru
SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)SSC Guru (175K reputation)

Group: Administrators
Points: 175062 Visits: 19494
cfradenburg (6/7/2011)
Ninja's_RGR'us (6/7/2011)
Now what kind of holidays is that???

Back to the horses or I tell your wife Hehe.


I'm pretty sure he didn't ride horses down to Florida which is where I gather he is from his blog post. If he did, more props to him. That's a nice, long vacation.


No horses, just swimming with my little girl. The VPN broke just before I was to leave, and apparently hasn't been fixed.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search