MySQL Solution
Code 1 (if)\n\n# Write your MySQL query statement below\nupdate Salary set sex = if(sex = \'m\', \'f\', \'m\');\n\n\n# Code 2 (case)\n\n# Write your MySQL query
# Code 1 (if)\n```\n# Write your MySQL query statement below\nupdate Salary set sex = if(sex = \'m\', \'f\', \'m\');\n```\n\n# Code 2 (case)\n```\n# Write your MySQL query statement below\nupdate Salary set sex = (case sex when \'m\' then \'f\' else \'m\' end);\n```
['MySQL']