Assigns a unique sequential number to each row within a partition, starting from 1. Category:Documentation Index
Fetch the complete documentation index at: https://docs.anlytic.com/llms.txt
Use this file to discover all available pages before exploring further.
window
Syntax:
Integer
Context Filtering: ✓ Yes
Parameters
This function takes no parameters. The row numbering is determined by the ORDER BY clause in the window specification.Validation
- Minimum parameters: 0
- Maximum parameters: 0
Examples
1, 2, 3, 4, 5, ...
Related Functions
- Rank - Assigns rank with gaps
- DenseRank - Assigns rank without gaps
- PercentRank - Calculates relative rank as percentage
- Ntile - Divides rows into groups
- RowNum - Alternative row numbering function