Your question is Employee and Customer Join. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
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 |