| 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
Dieter Nöth wrote:
> Heinz Huber wrote:
>
>>> 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.
That's interesting. We use Sybase ASA. This filters the tables based on the where clause. Therefore, the above query would not give the results you want.
Anybody care to comment on the standard?
Heinz Received on Wed Nov 27 2002 - 04:25:48 CST
![]() |
![]() |