If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > mSQL, this query would do...?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-11-10, 22:23
Light Devil Light Devil is offline
Registered User
 
Join Date: Jun 2010
Location: Nowhere, anywhere.
Posts: 1
Red face mSQL, this query would do...?

Ok, I'm not sure this is in the right forum, because I'm new here, so please if this is in the wrong one, please don't hate me.

Secondly, I feel a very silly (and scared) asking this, but I'm having a complete mental mind blank. What would this query do?

Select state_represented
From prime_minister
Group by state_represented
Having count(*) >= all
(Select count(*)
From prime_minister
Group by state_represented)

(I have the basic gist of it, but I'm not convinced that I have it correct. By the way, this isn't for any assignment or anything like that. It's a revision question which I just can't seem to wrap my head around.)

Also, to help, is there any other information you would need? (Sorry, if I sound like a complete newb... I am.)

Last edited by Light Devil; 06-11-10 at 22:26. Reason: Spelling
Reply With Quote
Reply

Tags
msql, newb, query, silly

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On