| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: How to get only the non-matching entries from an outer join
Mike Sherrill wrote:
> On Wed, 20 Nov 2002 13:29:06 -0600, "Matt Hughes" > <mhughes_at_nospam.eeek> wrote: > >
> > > Something like this? > > SELECT T2.FK, T1.PK > FROM T2 > LEFT JOIN T1 ON T2.FK = T1.PK > WHERE (T1.PK Is Null);
AFAIK, this will give you all rows from T2 without any data from T1. The where clause is applied BEFORE the outer join. Therefore all rows from T1 are filtered out since the PK cannot be NULL.
Regards,
Heinz
Received on Wed Nov 27 2002 - 03:57:38 CST
![]() |
![]() |