Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL challenge;-)
Thanks. Another learning experience today :o)
Regards, Norman.
-----Original Message-----
From: Ketan Shah [mailto:shahkn_at_home.com]
Posted At: Sunday, May 06, 2001 4:47 AM
Posted To: server
Conversation: SQL challenge;-)
Subject: Re: SQL challenge;-)
select ta.a,ta.b from table_a ta
where (ta.a,ta.b) not exists (select tb.a,tb.b from table_b tb where
tb.a =
ta.a and tb.b = tb.b)
PS - 1. not exists will work a lot faster than not in.
2. As others have pointed out, set operator minus will be very
fast
also.
Received on Tue May 08 2001 - 05:45:17 CDT
![]() |
![]() |