Simon, Thursday, June 27, 2002, 11:01:58 AM, you wrote: SG> Sorry I should have made this a bit clear. SG> I have to tables with users names in them. SG> All I need is a list on the Usernames that are in one column but not the SG> other. SG> The problem is like Mr DuBois said, is that I get every possible match like SG> a matrix (I think?). SG> So how do I get the values that are just not it one column?
Take a look at LEFT JOIN clause. SELECT table1.Username from table1 LEFT JOIN table2 ON table2.Username=table1.Username where table1.Username IS NULL -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- 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