SQL Full Join
A FULL JOIN (or FULL OUTER JOIN) returns all rows from both tables when there is a match. If there are no matches, NULL values are returned for the columns from the table with no match.
Example: Using FULL JOIN
SELECT FreedomFighters.Name, Events.EventName
FROM FreedomFighters
FULL JOIN Events ON FreedomFighters.FighterID = Events.FighterID;
Output:
| Name | EventName |
|---|---|
| Mahatma Gandhi | Dandi March |
| Subhas Chandra Bose | INA Formation |
| Bhagat Singh | Lahore Protest |
| Rani Lakshmi Bai | Battle of Jhansi |