Join Employees with Departments and display name and department.
Asked in the technical stage. This was a live SQL round using a given Employees/Departments schema; the candidate shared their screen, ran the query, and pasted the output in chat.
name and department.Unassigned for the department.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee's full name |
| department_id | INT | Assigned department identifier |
| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |