Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: SQL join to identify missing records?
Susie,
You can use outher join:
SELECT table1.id
FROM table1, table2 WHERE table1.id = table2.id_table1(+) AND table2.id_table1 IS NULL
Good luck!
Zbigniew Sliwa
Oracle Programmer
Poland
email: zibi_at_at_yahoo.com
Susie Grace napisa³(a) w wiadomo¶ci: <8o25cv$a4i$1_at_nnrp1.deja.com>...
>I have 2 tables that are joined, and want to identify records that are
>in table1 but NOT in table2?
>
>What is the sample syntax?
>
>Thanks in advance.
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
Received on Thu Aug 24 2000 - 02:00:32 CDT