Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Oracle EXISTS
I'm having a little trouble understanding the EXISTS operator. Why do
the following SQL statements return a different number of records:
SELECT t.id, lt.id
FROM table t, link_table lt
WHERE lt.id(+) = t.id;
SELECT t.id
FROM table1 t
WHERE
EXISTS (
SELECT 0 FROM link_table1 lt WHERE lt.id(+) = t.id
I thought EXISTS basically allows you to join tables in subselect statements, but there appears to be some subtle differences I'm missing. Received on Mon Jun 06 2005 - 08:51:14 CDT