Re: URGENT Join question
From: Nicolas Stern <spip46_at_hotmail.com>
Date: Thu, 9 Aug 2001 09:05:24 +0200
Message-ID: <3b723634$1_at_news.psi.ch>
Date: Thu, 9 Aug 2001 09:05:24 +0200
Message-ID: <3b723634$1_at_news.psi.ch>
Hi Manoj
I'm not certain if it's exactly what you need, but if your problem is "return me all the records from table2 that are not in table1", then this would do it:
select B.col1, B.col2 from table2 B
where not exists
(select A.col1, A.col2 from table1 A
where A.col2 = B.col2
and A.col1 = B.col1);
-- Nicolas SternReceived on Thu Aug 09 2001 - 09:05:24 CEST