What is the difference between an inner join, outer join, left join, and right join, and how do you use them?
Use the provided tables to demonstrate each join type. Include matched rows, unmatched rows from both sides, and the join type in the result.
join_type, employee_id, employee_name, clearance_id, clearance_levelemployee_id, then clearance_idemployee_id ascending with NULLs last, followed by clearance_id ascending.employee_id when only one side has a matching row.employee_name, clearance_id, and clearance_level values as NULL.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee display name |
| Column | Type | Description |
|---|---|---|
| clearance_idPK | INT | Unique clearance record identifier |
| employee_id | INT | Employee associated with the clearance record |
| clearance_level | VARCHAR(30) | Clearance classification |