1. What does the PARTITION BY clause do inside a window function?
- It physically splits tables on disk.
- It groups rows into logical partitions, resetting the window calculations for each group.
- It sorts the result set.
- It filters out NULL values.
Hint: PARTITION BY splits the window into groups. The function calculates its aggregate independently for each partition, resetting the calculation when the group changes.