>> > this doesnt work as i need either :o( > > it returns 3 rows, each with a count of 3 inside. i just want to get a > *single row* with the number 3 in it (for my example). > > You just need to add another clause to the where statement > > SELECT COUNT(*) FROM table WHERE team = "support" AND user="bob" GROUP BY name; replacing bob with whover you wish to count -- Colin --------------------------------------------------------------------- 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
- surely an easy quick one Jamie Burns
- Re: surely an easy quick one Aleksandar Bradaric
- Re: surely an easy quick one Stefan Pinkert
- RE: surely an easy quick one Colin Partridge
- Re: surely an easy quick one Jamie Burns
- Re: surely an easy quick one Lezz Giles
- Re: surely an easy quick one Jamie Burns
- Re: surely an easy quick one Colin Partridge
- Re: surely an easy quick one Lezz Giles
- Re: surely an easy quick one Jamie Burns
- Re[2]: surely an easy quick one Aleksandar Bradaric
- RE: surely an easy quick one Colin Partridge
- RE: surely an easy quick one Colin Partridge
- Re: surely an easy quick one Chris Johnson
- Re: surely an easy quick one Chris Johnson
- Re: surely an easy quick one Chris
- Re: surely an easy quick one Richard Dice