Your question is Join Employee and Customer by Employee No. 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 Governance needs a roster of active employees and the customers assigned to each employee. Write a PostgreSQL query that joins employees to customers using employee_number.
employment_status is Active.LEFT JOIN.Assigned or No customers.| Column | Type | Description |
|---|---|---|
| employee_numberPK | INTEGER | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| department | VARCHAR(80) | Employee department |
| employment_status | VARCHAR(20) | Employment status, such as Active or Inactive |
| Column | Type | Description |
|---|---|---|
| customer_idPK | INTEGER | Unique customer identifier |
| customer_name | VARCHAR(120) | Customer organization name |
| employee_number | INTEGER | Assigned employee number |
| customer_segment | VARCHAR(40) | Customer classification |
| account_status | VARCHAR(20) | Customer account status |