select
employee_id,
if( employee_id%2=1 and left(name,1)!='M',salary, 0) as bonus
from Employees
order by employee_id asc;
select
employee_id,
if( mod(employee_id,2)=1 and left(name,1)!='M',salary, 0) as bonus
from Employees
order by employee_id asc;
SELECT
employee_id,
CASE WHEN
MOD(employee_id, 2) = 1 AND name not rlike '^M'
THEN salary
ELSE 0
END AS bonus
FROM Employees
ORDER BY employee_id;