Ordered-set aggregates in SQL: PERCENTILE_CONT vs PERCENTILE_DISC with WITHIN GROUP
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how SQL ordered-set aggregates such as PERCENTILE_CONT and PERCENTILE_DISC work with WITHIN GROUP, and how continuous and discrete percentiles differ. Tests knowledge of percentile definitions, interpolation, NULL handling and choosing the right function for the data type.