SQL Full Join

A Full Join or Full Outer Join returns all records when there is a match in either left or right […]

A Full Join or Full Outer Join returns all records when there is a match in either left or right table records. If there is no match, the result is NULL on the side that does not have match.

SQL Full Join Syntax

SQL



Tutorials dojo strip

SQL Full Join Doctors and Appointments Example

This query returns all doctors and their corresponding appointments, including those doctors without appointments and appointments without corresponding doctors.

SQL




SQL Full Join Patients and Appointments Example

This query retrieves all patients along with their appointments. If a patients does not have an appointment, the appointment date will show as NULL.

SQL




SQL Full Join Visual Diagram




SQL Full Join Labs

Tutorials dojo strip