Skip to Main Content

Oracle Database Discussions

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!

Creating JOIN on three tables

user8533109Jul 20 2011 — edited Jul 20 2011
All-

I am writing a simple query where I am trying to get data from three different tables. Below are the three tables. How do I create an inner join between these three tables? Do I join Person, Address tables and Address, Transactions tables OR Do I join Person, Address tables and Person, Transactions tables?


PERSON (Table Name)

OID_PERSON
________________________________________
PREFIX
FIRSTNAME
LASTNAME
SUFFIX
GENDER



ADDRESS (Table Name)

OID_ADDRESS
________________________________________
OID_PERSON (FK)
ADDRESS1
ADDRESS2
CITY
STATE
ZIP
PLUS4

TRANSACTIONS (Table Name)

OID_TRANSACTION
________________________________________
OID_PERSON (FK)
TRANSACTION_DATE
TRANSACTION_AMOUNT
TRANSACTION_TYPE
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2011
Added on Jul 20 2011
3 comments
392 views