Oracle SQL,PL/SQL

What is Oracle / PLSQL Joins?

What is Oracle Joins
Written by shohal

Well, This is a short summery of Oracle/PLSQL Joins ,I just Written.

Oracle / PLSQL Joins

There are 4 different types of Oracle joins:

â€ĸOracle INNER JOIN (or sometimes called simple join)

â€ĸOracle LEFT OUTER JOIN (or sometimes called LEFT JOIN)

â€ĸOracle RIGHT OUTER JOIN (or sometimes called RIGHT JOIN)

â€ĸOracle FULL OUTER JOIN (or sometimes called FULL JOIN)

INNER JOIN (simple join)

Than returns multiple table matching (duplicates) data on a single output. â€ĸ

Inner join Syntax

The syntax for the INNER JOIN in Oracle/PLSQL is:

SELECT columns

FROM table1

INNER JOIN table2

ON table1.column = table2.column;

Visual Illustration

image

LEFT OUTER JOIN

Return all data from left table with matching data for other table.

Syntax

The syntax for the Oracle LEFT OUTER JOIN is:

SELECT columns

FROM table1

LEFT [OUTER] JOIN table2

ON table1.column = table2.column;

Visual Illustration

image 1

RIGHT OUTER JOIN

Return all data from right table whit matching data from other table.

Syntax
The syntax for the Oracle RIGHT OUTER JOIN is:

SELECT columns

FROM table1

RIGHT [OUTER] JOIN table2

ON table1.column = table2.column;

Visual Illustration

image 3

FULL OUTER JOIN

Return all data from left and right.

Syntax
The syntax for the Oracle FULL OUTER JOIN is:

SELECT columns

FROM table1

FULL [OUTER] JOIN table2

ON table1.column = table2.column;

Visual Illustration

image 4

About the author

shohal

Leave a Comment