Segmenting Your Top 20% Customers Using NTILE() in Presto/Trino (Without Complex Percentile Math)

Imagine you’re running a fast-growing e-commerce platform.