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 |