Skip to content

Commit 09c1579

Browse files
author
Openset
committed
Add: reformat
1 parent 970f3e5 commit 09c1579

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Write your MySQL query statement below
22

33
SELECT
4-
`name`,
5-
`population`,
6-
`area`
4+
`name`,
5+
`population`,
6+
`area`
77
FROM
8-
`World`
8+
`World`
99
WHERE
10-
`area` > 3000000
11-
OR `population` > 25000000;
10+
`area` > 3000000
11+
OR `population` > 25000000;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Write your MySQL query statement below
22

33
SELECT
4-
Email
4+
Email
55
FROM
6-
Person
6+
Person
77
GROUP BY
8-
Email
8+
Email
99
HAVING
10-
count( 1 ) > 1;
10+
count(1) > 1;

problems/swap-salary/swap_salary.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Write your MySQL query statement below
22

3+
# Method 1
34
UPDATE salary
45
SET sex = IF(sex = 'm', 'f', 'm');
56

7+
# Method 2
68
UPDATE salary
79
SET sex = CASE sex
810
WHEN 'm'

0 commit comments

Comments
 (0)