What is the SQL WINDOW clause, and why use named windows when several window functions share a window?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what the SQL WINDOW clause does and why named windows help when several window functions share the same partitioning and ordering. Tests the syntax and placement, how one window can build on another, and the frame pitfall of sharing an ordered window with aggregates.