> 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, bpalmer@crimelabs.net pgp:crimelabs.net/bpalmer.pgp5