Loading problem...
A compensation analytics service applies a deterministic bonus policy to monthly payroll records.
Table: employees
Bonus policy:
Task: Return each employee with their computed bonus according to the policy.
Output requirements:
Supported submission environments:
employees:
| employee_id | name | salary |
|-------------|---------|--------|
| 2 | Meir | 3000 |
| 3 | Michael | 3800 |
| 7 | Addilyn | 7400 |
| 8 | Juan | 6100 |
| 9 | Kannon | 7700 |[
{"employee_id":2,"bonus":0},
{"employee_id":3,"bonus":0},
{"employee_id":7,"bonus":7400},
{"employee_id":8,"bonus":0},
{"employee_id":9,"bonus":7700}
]Only odd employee IDs with names not starting with uppercase M receive full salary as bonus.
employees:
| employee_id | name | salary |
|-------------|--------|--------|
| 1 | maria | 4200 |
| 4 | Olivia | 3900 |
| 5 | Mason | 5100 |
| 11 | Noah | 4700 |[
{"employee_id":1,"bonus":4200},
{"employee_id":4,"bonus":0},
{"employee_id":5,"bonus":0},
{"employee_id":11,"bonus":4700}
]The lowercase name maria is eligible because only uppercase M as the first character is disqualifying.
employees:
| employee_id | name | salary |
|-------------|------|--------|
| (no rows) |[]An empty input table produces an empty output table.
Constraints