MySQL Simple and Clean Solution
Please Upvote if it helped you !!!\n\nupdate Salary set sex= if(sex=\'f\',\'m\',\'f\');\n\n\n\n\nupdate Salary set sex= \ncase\nwhen sex=\'f\' then \'m\'\nwhen 
**Please Upvote if it helped you !!!**\n```\nupdate Salary set sex= if(sex=\'f\',\'m\',\'f\');\n```\n\n\n```\nupdate Salary set sex= \ncase\nwhen sex=\'f\' then \'m\'\nwhen sex=\'m\' then \'f\'\nend;\n```
['MySQL']