You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/g0101_0200/s0178_rank_scores/readme.md
+34-4Lines changed: 34 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,14 @@ SQL Schema
6
6
7
7
Table: `Scores`
8
8
9
-
+-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | score | decimal | +-------------+---------+ id is the primary key for this table. Each row of this table contains the score of a game. Score is a floating point value with two decimal places.
9
+
+-------------+---------+
10
+
| Column Name | Type |
11
+
+-------------+---------+
12
+
| id | int |
13
+
| score | decimal |
14
+
+-------------+---------+
15
+
id is the primary key for this table.
16
+
Each row of this table contains the score of a game. Score is a floating point value with two decimal places.
10
17
11
18
Write an SQL query to rank the scores. The ranking should be calculated according to the following rules:
12
19
@@ -20,6 +27,29 @@ The query result format is in the following example.
0 commit comments