ISS STOXX uses employee numbers to identify account ownership in its customer operations data. Write a PostgreSQL query that joins the employee and customer tables to show active customer assignments while retaining employees who have no active customer.
LEFT JOIN on employee.employee_no = customer.employee_no so every employee remains in the result.Active, without removing employees who have no active customer.assignment_status column showing Active customer or No active customer.| Column | Type | Description |
|---|---|---|
| employee_noPK | INTEGER | Unique ISS STOXX employee number |
| employee_name | VARCHAR(100) | Employee's full name |
| team | VARCHAR(80) | Employee's operations team |
| office | VARCHAR(80) | Employee's office location |
| Column | Type | Description |
|---|---|---|
| customer_idPK | INTEGER | Unique customer identifier |
| customer_name | VARCHAR(120) | Customer organization name |
| employee_no | INTEGER | Assigned employee number |
| status | VARCHAR(20) | Customer assignment status |