Describe the NTILE() function. When is it useful, such as dividing data into quartiles or deciles?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what the SQL NTILE window function does and when it is the right tool, such as splitting rows into quartiles or deciles. Tests understanding of how rows are spread across buckets, how ties and NULLs are handled, and when a percentile function fits better.