Explain it in 60 seconds
What window functions are
Data Engineering · SQL · Intermediate
What are window functions, and how are they different from GROUP BY?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Window functions calculate across a set of related rows without collapsing them.
- Defined with OVER (PARTITION BY ... ORDER BY ...).
- GROUP BY returns one row per group, windows keep every row.
- Used for ranking, running totals, moving averages and comparing to previous rows.
- Window results can't be filtered in WHERE, use QUALIFY or a subquery.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.