Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> PL/SQL returning abnormalities????
We have a report that gets generated via a PL/SQL Script, and the results are off and I can't determine, from the script what is askew. (written by a developer...left to me, the DBA :-))
The jist of the script is the following:
select cust.format,
cust.type, cust.description, cust.notes, phone.extension,
What is happening in this script, is that the addr.format is getting
lost with the addr.owner(+) = cust.name_id part of the script.
The correct addr.format is there for the particular popcode, but gets
eliminated when pulling the owner part of the script.
However, if you eliminate the addr.owner(+) = contact.name_id part of
the script, and just add "and addr.popcode = contact.popcode" too many
records are returned.
I don't know why this is the case, as the (+) should still pull the
correct addr.format????
What happens, is the addr.format that is returned is what you get the
addr.owner is = to the cust.name_id, (which is actually a blank value).
I hope this makes sense.
Is there a way to make this work?
Received on Thu Feb 10 2000 - 00:00:00 CST
![]() |
![]() |