Lesson 9.5 · Pro

NTILE and PERCENT_RANK

Split rows into equal-sized buckets like quartiles or percentiles.

In this lesson

  1. NTILE(n) makes n equal buckets
  2. NTILE(100) for percentiles
  3. PERCENT_RANK: where a row sits from 0 to 1