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

1 line
67 B
SQL

UPDATE Salary SET sex = CASE WHEN sex = "f" THEN "m" ELSE "f" END;