> SELECT count(*) FROM users WHERE id NOT IN ( SELECT users_id FROM >users_demographics );
I'm not sure about the difference in speed, but try the following for a much faster query: SELECT count(id) FROM users EXCEPT SELECT users_id FROM users_demographics Should be a great deal faster. - Brandon ---------------------------------------------------------------------------- c: 646-456-5455 h: 201-798-4983 b. palmer, [EMAIL PROTECTED] pgp:crimelabs.net/bpalmer.pgp5 ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])