Comment

Comment by taffer

Window functions can be used to compute the median:

    select percentile_disc(0.5) within group (order by things.value)
    from things
parent taffer 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton