Percentiles
Percentiles are ordered-set aggregates: percentile_cont(p) WITHIN GROUP (ORDER BY x). First total each order, then take the percentile of the totals.
task
Median and p90 order total (cents).
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Percentiles are ordered-set aggregates: percentile_cont(p) WITHIN GROUP (ORDER BY x). First total each order, then take the percentile of the totals.
Median and p90 order total (cents).