Write a query to retrieve data from two tables using an INNER JOIN and a LEFT JOIN, and explain the difference in their outputs.
Use the employees and assignments tables. Return both result sets in a clearly labeled output so matched rows and unmatched employees can be compared.
join_type, employee_id, employee_name, assignment_id, assignment_name| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| department | VARCHAR(80) | Employee department |
| Column | Type | Description |
|---|---|---|
| assignment_idPK | INT | Unique assignment identifier |
| employee_id | INT | Employee assigned to the work item |
| assignment_name | VARCHAR(120) | Assignment title |
| status | VARCHAR(30) | Current assignment status |