Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: SQL join to identify missing records?
I think that the query using minus is the fastest.
> select distinct id from table1
> minus
> select distinct id from table2
> /
"distinct" is not necessary. A query using "minus" will always return distinct values.
select id from table1
minus
select id from table2
Florian Morel Received on Fri Aug 25 2000 - 03:44:57 CDT
![]() |
![]() |