Bernd, Wednesday, April 03, 2002, 2:42:33 PM, you wrote: BM> I want to get the difference between 2 tables.
BM> table_1: BM> column_1 BM> A BM> B BM> C BM> D BM> table_2: BM> column_2 BM> B BM> C BM> What is the sql select syntax to get as result A,D or B,C? Look at JOIN clause: http://www.mysql.com/doc/J/O/JOIN.html For example: SELECT * FROM table_1 LEFT JOIN table_2 ON table_1.column_1=table_2.column_2 WHERE table_2.column_2 IS NULL; BM> Thanx for your help. BM> Regards, BM> Bernd -- For technical support contracts, goto https://order.mysql.com/ 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