If you want a count for a specific team:
Select count(*) From table Where team = 'support';
If you want the counts for all the teams:
Select team, count(*) From table Group By team;
----- Original Message -----
From: "Jamie Burns" <[EMAIL PROTECTED]>
I have a table (ref, name, team, seminar_ref) like:
1 bill support 100
2 bill support 101
3 bill support 102
4 ben development 201
5 ben development 103
6 ben development 204
7 bob support 104
8 bob support 102
9 bob support 107
7 pat support 102
8 pat support 202
9 pat support 105
I need to get a count of how many individual people are in the table, that
belong to a certain group. So if I wanted to find all individual people in
support the answer in this case it would be 3 (bill, bob and pat). I dont
need their names, just the count.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php