EASY SOLUTION FOR PostgreSQL BEATS 96.69%
\n\n# Code\n\nUPDATE Salary\nSET sex = CASE\nWHEN sex = \'m\' THEN \'f\'\nWHEN sex = \'f\' THEN \'m\'\nEND;\n
\n\n# Code\n```\nUPDATE Salary\nSET sex = CASE\nWHEN sex = \'m\' THEN \'f\'\nWHEN sex = \'f\' THEN \'m\'\nEND;\n```
['PostgreSQL']