β Fullstack with Vue.jsQuestion 16 of 62
What is a window function in SQL?
π Explanation
A window function computes a value for each row based on a related set of rows (defined by PARTITION BY and ORDER BY), but keeps every row separate instead of collapsing them, as shown with the running total example. This is different from grouping and collapsing rows like a regular aggregate or GROUP BY would do, and it has nothing to do with creating temporary tables in memory or filtering by a date range.
Related questions
β PreviousNo login needed