LeetCode - SQL题目

1 · 雨临Lewis · Aug. 17, 2021, 4:23 p.m.
627. Swap Salary 题目 https://leetcode.com/problems/swap-salary/description/ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Salary table: +----+------+-----+--------+ | id | name | sex | salary | +----+------+-----+--------+ | 1 | A | m | 2500 | | 2 | B | f | 1500 | | 3 | C | m | 5500 | | 4 | D | f | 500 | +----+------+-----+--------+ Result table: +----+------+-----+--------+ | id | name | sex | salary | +----+------+-----+--------+ | 1 | A ...