Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion course/module-5/types-of-windows-functions/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ SELECT id,
LAG(price, 2) OVER(PARTITION BY home_type ORDER BY price) AS 'lag_2',
LEAD(price) OVER(PARTITION BY home_type ORDER BY price) AS 'lead',
FIRST_VALUE(price) OVER(PARTITION BY home_type ORDER BY price) AS 'first_value',
LAST_VALUE(price) OVER(PARTITION BY home_type ORDER BY price) AS 'last_value'
LAST_VALUE(price) OVER(PARTITION BY home_type ORDER BY price ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS "last_value"
FROM Rooms;
```