LeetCode #627 - Swap Salary (MySQL)

Could be done in multiple way, I used IF

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