From 84b4c2c8a57b2399ae40b42e00cf5fd4c2396724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20Chac=C3=B3n=20Guti=C3=A9rrez?= <138903866+joseantoniochacon@users.noreply.github.com> Date: Thu, 27 Jun 2024 16:47:30 -0600 Subject: [PATCH] Time: 220 ms (89.67%), Space: 0B (100.00%) - LeetHub --- 0627-swap-salary/0627-swap-salary.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 0627-swap-salary/0627-swap-salary.sql diff --git a/0627-swap-salary/0627-swap-salary.sql b/0627-swap-salary/0627-swap-salary.sql new file mode 100644 index 0000000..b9f8842 --- /dev/null +++ b/0627-swap-salary/0627-swap-salary.sql @@ -0,0 +1,2 @@ +# Write your MySQL query statement below +UPDATE Salary SET sex = CASE WHEN sex='f' THEN 'm' ELSE 'f' END \ No newline at end of file