Hello,

Much more interesting than the MEDIAN() aggregate function itself are 
inverse distribution functions, or ordered-set aggregate functions in 
general. MEDIAN(xyz) can be emulated via PERCENTILE_CONT(0.5) WITHIN GROUP 
(ORDER BY xyz), as documented in this blog post:
http://blog.jooq.org/2015/01/06/how-to-emulate-the-median-aggregate-function-using-inverse-distribution-functions

Have ordered-set aggregate functions been considered in H2, before? I know, 
window functions are also on the roadmap. It would be awesome if these 
features were a part of H2 ;-)

Cheers
Lukas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to