SQL Full Join

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.

Tutorials dojo strip

SQL Full Join Syntax

SQL

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