Median

SQL

SELECT min(score),
ROUND(PERCENTILE_CONT(0.50) WITHIN GROUP(ORDER BY score)::numeric, 2)::float AS median,
max(score)
FROM result;

Did you find this snippet useful?

Sign up for free to to add this to your code library

SQL RANK
SQL

4
EXISTS
SQL

3