Q
Manage Learn to apply best practices and optimize your operations.

How to join two tables with unique keys in Oracle

Learn how to use an Oracle table join to connect two tables with unique keys in Oracle in this tip from Oracle expert Brian Peasland.

Can we join two tables using unique keys in Oracle?
Of course. We'll assume tableX has ColX as its unique key and tableY has ColY as its unique key. The join would look something like:

 

 SELECT x.ColX, y.ColY FROM tableX x, tableY y WHERE x.ColX = y.Coly;

Dig Deeper on Oracle database design and architecture

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Join the conversation

2 comments

Send me notifications when other members comment.

Please create a username to comment.

Some more details about joins: http://cadlg.com/2015/09/oracle-inner-join-syntax-4-different-ways/
Cancel
It didn't work.  Here is the link again:  Oracle Inner Join Syntax : 4 different ways
Cancel

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close