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!

JOIN 2 tables that have same column ?

Kodiak_SeattleMay 16 2008 — edited May 16 2008
I need to learn how to join two tables that both have the same column name:

tbl1 - idskey
tbl2 - idskey

the idskey column holds a id_number

When I do the JOIN I would like to make sure that only Distinct records are joined from both tables and that any duplicates are removed in the final join. So if:

Tbl1 has a idskey of: 12345
and
Tbl2 has a idskey of: 12345

In the final JOIN I want to remove one of those duplicates.

I actually need to join 3 tables that have the same linking column names for the join, but if I learn how to do this correctly on 2, that will be a start.

10g for db, thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2008
Added on May 16 2008
14 comments
2,889 views