Junior SQL

What is the difference between LEFT JOIN and RIGHT JOIN?

  • LEFT JOIN: Returns all records from the left table, and matched records from the

right table. If there's no match, NULL values are returned for the right table's

columns.

  • RIGHT JOIN: Returns all records from the right table, and matched records from the

left table. If there's no match, NULL values are returned for the left table's columns.

More from SQL Server Tutorial

All questions for this course