Hi, > SELECT COUNT(DISTINCT name) from tester WHERE team = 'support' Could 2 queries do the trick? insert into temptable select count(name) from tester where team = 'support' group by team; select count(*) from temptable; Best Regards, Sasa P.S. create table temptable(tempfield integer); --------------------------------------------------------------------- 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: 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