my-solutions/problems/0627-swap-salary/main.sql

2 lines
67 B
MySQL
Raw Normal View History

2023-01-28 20:58:37 +05:00
UPDATE Salary SET sex = CASE WHEN sex = "f" THEN "m" ELSE "f" END;