Home >> Oracle >> Inner Join in Oracle

Inner Join in Oracle

In Oracle database  R1 inner join R2

Those tuple of R1 will get combined with tuple of R2 if they have same value for the common attribute.

common attribute or column that have the same name in both table

Note-if in two table attribute same show common element from both table will be fetch.

Example 1

R1 table

A           B           C

X           10         100

Y           20         100

Z           30         200

S           40         400

R2 table

C           D

100        L

200        M

300        N

Output

A       B       C       D

X       10     100      L

Y       20     100     L

Z       30     200      M

Example 2

R1 table

A           B           C

X           10         100

Y           20         100

Z           30         200

S           40         400

R2 table

C           D

100        L

200        M

300        N

100        T

Output

A       B       C       D

X       10     100      L

Y       20     100     L

Z       30      200     M

X       10     100      T

Y       20     100     T

Post Your Comment

Next Questions
Outer Join
Self Join
Cross Join
Equi Join
Anti Join
Semi Join
Create database
Drop database
Create table
Drop table
Truncate table
Alter Table
Create table AS
Global Temporary tables
SELECT Query
INSERT Query
INSERT ALL Query
UPDATE Query
DELETE Query
WHERE clause
AND Clause
OR Clause
LIKE clause
IN clause
ORDER BY Clause

Copyright ©2022 coderraj.com. All Rights Reserved.