Got a challenge for ya guys

From: Date: Mon, 25 Dec 2000 21:48:03 +0000
Subject: Got a challenge for ya guys
Groups: php.db 
Request: Send a blank email to php-db+get-5432@lists.php.net to get a copy of this message
aight i got these two tables: lets structure them like this: TABLE1 username | group | sex john | 1 | M mike | 1 | M jen | 2 | F TABLE2 username | age john | 2 mike | 3 jen | 2 here what i want to do: find how many unique groups are of age '2' its quite easy to find how many different people are of age '2' but how can i get the number of groups? also, i dont want to list the same group more than once. i'd like to have this all done in mysql so i can calculate how many results (see a search engine comin here...hehe)

« previous php.db (#5432) next »