Apple HR is implementing a new performance-based bonus structure. The bonus for an employee is 50% of their salary if:
If these conditions are not met, the bonus is 0.
| employee_id(INTEGER) | name(VARCHAR) | salary(INTEGER) |
|---|---|---|
| 2 | Meghan | 3000 |
| 3 | Addison | 3800 |
| 7 | Kody | 7400 |
| 8 | Adryan | 6100 |
| 9 | Arun | 3400 |
| employee_id(INTEGER) | has_insurance(BOOLEAN) |
|---|---|
| 2 | true |
| 8 | false |
| dept_id(INTEGER) | employee_id(INTEGER) |
|---|---|
| 1 | 2 |
| 2 | 8 |
| employee_id(INTEGER) | bonus(DECIMAL) |
|---|---|
| 2 | 1500 |
| 3 | 0 |
| 7 | 0 |
| 8 | 3050 |
| 9 | 0 |