Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 66ef384

Browse files
committed
Update: reformat code
1 parent 038b9b4 commit 66ef384

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-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;

‎problems/duplicate-emails/duplicate_emails.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ FROM
77
GROUP BY
88
Email
99
HAVING
10-
count( 1 ) >1
10+
count( 1 ) >1;

‎problems/swap-salary/swap_salary.sql

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

3+
UPDATE salary
4+
SET sex = IF(sex = 'm', 'f', 'm');
5+
36
UPDATE salary
47
SET sex = CASE sex
58
WHEN 'm'
69
THEN 'f'
710
ELSE 'm' END;
8-
9-
UPDATE salary
10-
SET sex = IF(sex = 'm', 'f', 'm');

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /