small updates

This commit is contained in:
Blargian 2024-07-10 21:51:14 +02:00
parent 9c0610ec2b
commit 4d60ff6a91
7 changed files with 19 additions and 21 deletions

View File

@ -1,12 +1,12 @@
---
slug: /en/sql-reference/window-functions/dense_rank
sidebar_label: dense_rank
sidebar_position: 2
sidebar_position: 7
---
# dense_rank
This window function ranks the current row within its partition without gaps. In other words, if the value of any new row encountered is equal to the value of one of the previous rows then it will receive the next successive rank without any gaps in ranking.
Ranks the current row within its partition without gaps. In other words, if the value of any new row encountered is equal to the value of one of the previous rows then it will receive the next successive rank without any gaps in ranking.
The [rank](./rank.md) function provides the same behaviour, but with gaps in ranking.

View File

@ -1,12 +1,12 @@
---
slug: /en/sql-reference/window-functions/lagInFrame
sidebar_label: lagInFrame
sidebar_position: 3
sidebar_position: 8
---
# lagInFrame
Return a value evaluated at the row that is at a specified physical offset before the current row within the ordered frame. The offset parameter, if not specified, defaults to 1, meaning it will fetch the value from the next row. If the calculated row exceeds the boundaries of the window frame, the specified default value is returned.
Returns a value evaluated at the row that is at a specified physical offset row before the current row within the ordered frame.
**Syntax**

View File

@ -1,17 +1,17 @@
---
slug: /en/sql-reference/window-functions/lagInFrame
sidebar_label: lagInFrame
slug: /en/sql-reference/window-functions/last_value
sidebar_label: last_value
sidebar_position: 4
---
# first_value
# last_value
Return the last non-NULL value evaluated within its ordered frame.
Returns the last non-NULL value evaluated within its ordered frame.
**Syntax**
```sql
first_value (column_name)
last_value (column_name)
OVER ([[PARTITION BY grouping_column] [ORDER BY sorting_column]
[ROWS or RANGE expression_to_bound_rows_withing_the_group]] | [window_name])
FROM table_name

View File

@ -1,12 +1,12 @@
---
slug: /en/sql-reference/window-functions/leadInFrame
sidebar_label: leadInFrame
sidebar_position: 5
sidebar_position: 9
---
# leadInFrame
Return a value evaluated at the row that is offset rows after the current row within the ordered frame.
Returns a value evaluated at the row that is offset rows after the current row within the ordered frame.
**Syntax**

View File

@ -1,14 +1,12 @@
---
slug: /en/sql-reference/window-functions/leadInFrame
sidebar_label: leadInFrame
sidebar_position: 6
slug: /en/sql-reference/window-functions/nth_value
sidebar_label: nth_value
sidebar_position: 5
---
# nth_value
Return the first non-NULL value evaluated against the nth row (offset) in its ordered frame.
The [dense_rank](./dense_rank.md) function provides the same behaviour but without gaps in ranking.
Returns the first non-NULL value evaluated against the nth row (offset) in its ordered frame.
**Syntax**

View File

@ -1,12 +1,12 @@
---
slug: /en/sql-reference/window-functions/rank
sidebar_label: rank
sidebar_position: 7
sidebar_position: 6
---
# rank
This window function ranks the current row within its partition with gaps. In other words, if the value of any row it encounters is equal to the value of a previous row then it will receive the same rank as that previous row.
Ranks the current row within its partition with gaps. In other words, if the value of any row it encounters is equal to the value of a previous row then it will receive the same rank as that previous row.
The rank of the next row is then equal to the rank of the previous row plus a gap equal to the number of times the previous rank was given.
The [dense_rank](./dense_rank.md) function provides the same behaviour but without gaps in ranking.

View File

@ -1,12 +1,12 @@
---
slug: /en/sql-reference/window-functions/row_number
sidebar_label: row_number
sidebar_position: 8
sidebar_position: 2
---
# row_number
Numbers the current row within its partition starting from 1
Numbers the current row within its partition starting from 1.
**Syntax**