You are on page 1of 1

LEFT JOIN Syntax:

SELECT column_name(s)
FROM table1
LEFT JOIN table2
ON table1.column_name  =  table2.column_name;
RIGHT (OUTER) JOIN: This function returns records from the right table and matched records from the
left table.
RIGHT JOIN Syntax:

SELECT column_name(s)
FROM table1
RIGHT JOIN table2
ON table1.column_name  =  table2.column_name;
FULL (OUTER) JOIN: It returns record when there is a match in either left or right table.
FULL OUTER JOIN Syntax:

SELECT column_name(s)
FROM table1
FULL OUTER JOIN table2
ON table1.column_name  =  table2.column_name
WHERE condition;

You might also like