What do PERCENT_RANK() and CUME_DIST() compute, and how do they differ from each other and from NTILE()?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what the SQL window functions PERCENT_RANK, CUME_DIST and NTILE return for each row of an ordered partition. Tests whether you know their formulas, their value ranges and how each one handles tied values when you build percentile filters or buckets.