this doesnt work as i need  :o(

it returns a count of 9, not 3 in my example.

i want to know how many *individual* people are in the database for a given
'team'. in my example there are three in 'support' (this is what i want to
know), and they are each in the table three times (this is where your query
gets 9 from).

:o(

----- Original Message -----
From: "Stefan Pinkert" <[EMAIL PROTECTED]>
To: "Jamie Burns" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 2:25 PM
Subject: Re: surely an easy quick one


> select count(*) from table where team='support' group by team
>
> -----Ursprüngliche Nachricht-----
> Von: Jamie Burns [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 14. September 2001 15:09
> An: [EMAIL PROTECTED]
> Betreff: surely an easy quick one
>
>
> Hello again :o)
>
> This is surely an easy quick one but my brain wont work!
>
> 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.
>
> Thanks,
>
> Jamie.
>
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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

Reply via email to