Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Self/Outer Join
I am inserting payroll data from 2 databases into a single table for
parallel test comparison purposes. I do self join for where the person and
earnings code exist in both, with a union to 2 outer-self joins in case they
exist in one database and not the other. However, the outer/self joins
don't work - they don't return any rows. When I do a "NOT EXISTS" it works
fine. This is not a problem, but I won't be able to sleep until I
understand why the outer join won't work.
The table is not indexed nor has any constraints.
Thanks for any ideas.
Good code:
...
...
UNION ALL
SELECT
P.NAME
FROM PR_COMP T WHERE T.EMPLID = P.EMPLID AND T.ERNCD = P.ERNCD AND T.GLOBAL_NAME = 'TEST.WORLD')
Does not work below...
...
...
UNION ALL
SELECT
P.NAME
AND P.EMPLID = T.EMPLID (+) AND P.ERNCD = T.ERNCD (+) AND T.EMPLID IS NULLReceived on Sun Oct 10 1999 - 21:45:20 CDT