Suppose I have the following table definition:
CREATE TABLE x (i serial primary key, value integer not null);
I want to calculate the MEDIAN o
For googlers: there is also http://pgxn.org/dist/quantile Median can be calculated in one line after installation of this extension.