Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

count query

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want to sum my members by country
I did something like this....but it doesnt work...

select count(id)
from orderrow
where (id) IN
(select distinct country
from orderrow)
 
Something like ...

select count(*), country
from orderrow
group by country

... should work

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top