Computing the Special Bonus
The bonus equals 100% of an employee's salary when the employee_id is odd and the name does not start with 'M'; otherwise the bonus is 0. Return employee_id and bonus ordered by employee_id.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| bonus | employee_id |
|---|---|
| 0 | 2 |
| 0 | 3 |
| 7400 | 7 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inFocus radio
Paused · SomaFM · Fluid