Your question is SQL Query for High Sales Employees. 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.
Iris software wants to identify employees whose completed sales exceed the £1,000,000 performance threshold. Write a PostgreSQL query that aggregates qualifying sales by employee and returns every employee above the threshold.
status = 'Completed'.1000000.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee's full name |
| department | VARCHAR(50) | Employee's department |
| Column | Type | Description |
|---|---|---|
| sale_idPK | INT | Unique sale identifier |
| employee_id | INT | Employee responsible for the sale |
| sale_amount | NUMERIC(12,2) | Monetary value of the sale |
| status | VARCHAR(20) | Processing status of the sale |