SQL window function
Window functions
Functions to easily define relationships between rows.
ํ๊ณผ ๋ค๋ฅธ ํ๋ค๊ฐ์ ๊ด๊ณ๋ฅผ ์ฝ๊ฒ ์ ์. ์์, ํฉ๊ณ, ํ๊ท , ํ ์์น ๋ฑ์ ์กฐ์ ๊ฐ๋ฅ.
Types
- Aggregate: e.g AVG(), MAX(), MIN(), SUM(), COUNT()
- Ranking: e.g ROW_NUMBER(), RANK(), DENSE_RANK()
- Value: e.g LAG(), LEAD()