MySQL RIGHT JOIN Tutorial
Quick Answer
The MySQL RIGHT JOIN returns all records from the right table and matched records from the left table. If there is no match, NULL values appear for left table columns. It is useful to find all entries in the right table regardless of matches in the left table.
Learning Objectives
- Understand the purpose and syntax of MySQL RIGHT JOIN.
- Write queries using RIGHT JOIN to combine tables.
- Identify when to use RIGHT JOIN versus other join types.
Introduction
In SQL, joins combine rows from two or more tables based on related columns.
RIGHT JOIN is one type of join that focuses on returning all records from the right table.
RIGHT JOIN ensures no data from the right table is lost.





