block by mhkeller 2bcd8f476b80f8bc7430e55b12a59322

Calculat quantile amounts based on aggregate counts. Adapted from https://gist.github.com/hrwgc/5171860

ntile-counts.sql