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!

XOR relationship between three tables

219699Mar 30 2007 — edited Mar 30 2007
Hi all,
I have a SQL problem and I can't resolve it:
I have 3 tables: parent table: tableA, and two child tables : tableB and tableC.
but tableC is also a child of tableB.
so I have two cases of returning data:
1- select data from tableA and tableC (inner join)
or
2- select data from tableA and tableB and tableC (inner join A and B + inner join B and C).

How can I achieve this?
thx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2007
Added on Mar 30 2007
4 comments
679 views