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()