SQL Right Join

A Right Join or Right Outer Join returns all records from the right table and the matched records from the […]

A Right Join or Right Outer Join returns all records from the right table and the matched records from the left table. If there’s no match, the result is NULL on the left side.

SQL Right Join Syntax

SQL



Tutorials dojo strip

SQL Right Join Matching Patients and Appointments Example

This query shows all patients, along with their appointments. If a patient has no apppointments scheduled, their name will still appear, but the appointments fields will be NULL.

SQL




SQL Right Join Patients with Medical Records

This query highlights all patients and their medical records. If a patient has no medical record, their details will appear, but the records infortmation will be NULL.

SQL




SQL Right Join Visual Diagram



SQL Right Join Labs

Tutorials dojo strip