Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What was the reason there's no data returned?

JackKDec 30 2020

Hello All!
I am wondering if there is a clever way to know which WHERE or JOIN CONDITION results in no data returned.
Suppose, there is a query:
SELECT *
FROM tab1 t1
JOIN tab2 t2 ON t2.id=t1.id
JOIN tab3 t3 ON t3.id=t2.id
JOIN tab4 t4 ON t4.id=t3.id;
If the query returned no rows how may one know which ON condition was the reason?
Best regards,
Jacek

Comments
Post Details
Added on Dec 30 2020
7 comments
1,303 views