LeetCode 627: Swap Salary
Problem Restatement We are given a table named Salary . Each row stores information about one employee. The sex column contains only two possible values: Value Meaning m male f female We need to update the table so that every m becomes f , and every f becomes m . The problem requires one UPDATE statement. We should not use a temporary table, and we should not write a SELECT...