Skip to content

Commit 25ddfd5

Browse files
authored
Fixed sqls.
1 parent 2b6704b commit 25ddfd5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Write your MySQL query statement below
22
# #Easy #Database #SQL_I_Day_5_Union #2022_10_12_Time_473_ms_(54.97%)_Space_0B_(100.00%)
33
SELECT FirstName, LastName, City, State
4-
FROM Person LEFT JOIN Address USING (PersonId)
4+
FROM Person LEFT JOIN Address USING (PersonId)

src/main/kotlin/g0101_0200/s0176_second_highest_salary/script.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ SELECT ifnull(
66
FROM Employee
77
ORDER BY Salary DESC
88
LIMIT 1
9-
OFFSET 1), NULL) SecondHighestSalary;
9+
OFFSET 1), NULL) SecondHighestSalary;

src/main/kotlin/g0101_0200/s0177_nth_highest_salary/script.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ SET M=N-1;
77
# #Medium #Database #2022_06_26_Time_342_ms_(71.87%)_Space_0B_(100.00%)
88
SELECT DISTINCT Salary FROM Employee ORDER BY Salary DESC LIMIT M, 1
99
);
10-
END
10+
END
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Write your MySQL query statement below
22
# #Medium #Database #2022_06_26_Time_290_ms_(66.73%)_Space_0B_(100.00%)
3-
select Score, DENSE_RANK() OVER(order by Score Desc) as "Rank" from Scores order by "Rank" Asc;
3+
select Score, DENSE_RANK() OVER(order by Score Desc) as "Rank" from Scores order by "Rank" Asc;

0 commit comments

Comments
 (0)