1873. Calculate Special Bonus




1873. Calculate Special Bonus

리트코드


SELECT employee_id, IF(employee_id % 2 = 1 AND name NOT LIKE 'M%', salary, 0) AS bonus
  FROM Employees


627. Swap Salary

리트코드


UPDATE Salary
   SET sex = IF(sex = 'f','m','f')