Salada, Thursday, May 02, 2002, 4:45:01 PM, you wrote: Seoen> I'm sure this question has been asked before, but I received an error while Seoen> attempting to search the list archives - so I apologize for redunancy.
Seoen> I have two tables, events and events_terms, that have a common key, Seoen> events_ID. Now I want to find the rows in events_terms that have an Seoen> events_ID that does not match a corresponding row in events. I came up with Seoen> an SQL statement that seems to work but I want to make sure that I'm not Seoen> missing Seoen> anything. Here's the statement: Seoen> select events_terms.* from events_terms left join events on Seoen> events_terms.events_ID=events.events_ID where isnull(events.events_ID); Seoen> Can anyone tell me if that looks like it should have the desired effect? Looks like it's a right statement for the desired effect. Seoen> Thanks, Seoen> Duncan -- For technical support contracts, goto https://order.mysql.com/ This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [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