What is a join in SQL?
Asked in the Aptitude Test stage. Listed under Round 1 together with git commands.
Write a SQL query that associates each employee with the matching department name when available.
employee_id, employee_name, and department_name.NULL for department_name.employee_id ascending.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| department_id | INT | Department assigned to the employee |
| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |