Mailing List Receiver <[EMAIL PROTECTED]> wrote:
> mysql> select bademail.email from bademail,noemail where bademail.email <> 
> noemail.email;
> 
> bademail has about 30,000 rows and noemail has 13,000.
> 
> This, by the way, does a good job of bringing your system to its knees!
> 

You need something like:

SELECT bademail.email FROM bademail LEFT JOIN noemail
ON bademail.email=noemail.email WHERE noemail.email IS NULL;



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to