Skip to content

Commit 9fe8281

Browse files
authored
Update window-functions-in-where-clause.sql
1 parent cecfbd6 commit 9fe8281

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data-manipulation/window-functions-where-clause/window-functions-in-where-clause.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ WHERE r <= 3;
1414
SELECT *
1515
FROM (
1616
SELECT
17-
id, name, GPA,
18-
RANK() OVER (ORDER BY GPA DESC) AS r
17+
id, name, gpa,
18+
RANK() OVER (ORDER BY gpa DESC) AS r
1919
FROM Student
20-
WHERE GPA IS NOT NULL
20+
WHERE gpa IS NOT NULL
2121
) AS RankedStudents
2222
WHERE r <= 3;

0 commit comments

Comments
 (0)