Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 3

Right Join

By Arpita Mohanty
• The Right join , joins two tables and fetches rows based on a condition, which are matching in both the tables.

• The Right join clause selects all rows from the right table and matches rows in the left table.

• If a row from the right table doesn’t have matching rows from the left table, then column of left table will have NULL
in the final result set.

Right Join

A B
Example-

Table_A
Table_B

select a.`Customer ID`, a.Name, b.Amount


from Table_A as a right join Table_B as b
on a.`Customer ID`=b.`Order ID`;

Final Output

You might also like