SQL Window Functions Reference (ROW_NUMBER/RANK/LAG/LEAD)
SQL Window Functions Reference (ROW_NUMBER/RANK/LAG/LEAD) — structured authoritative technical reference table.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
| Function | Purpose | Tie Handling |
|---|---|---|
| ROW_NUMBER() | Unique sequential int | Arbitrary tie break |
| RANK() | Gapped ranking | 1, 1, 3 |
| DENSE_RANK() | Gapless ranking | 1, 1, 2 |
| LAG / LEAD | Previous / next row value | Partition-scoped |
Technical Explanation
SQL Window Functions Reference (ROW_NUMBER/RANK/LAG/LEAD) — structured authoritative technical reference table. Verified against authoritative technical and scientific standards.
Worked Examples
- Scan SQL Window Functions Reference (ROW_NUMBER/RANK/LAG/LEAD) for exact parameters, limits, or syntax.
Limitations & Assumptions
- Summary reference table; consult the linked authoritative specification for complete normative clauses.
Source References & Verification
Resource ID: ref-sql-window-functions · Independently verified: 2026-11-25