我需要计算一列的中值,该列的数据类型为 date。
问问题
3328 次
2 回答
3
As simple as selecting the median...
select median(a) from (
select date '2010-01-01' a from dual union all
select date '2010-01-02' a from dual union all
select date '2010-01-05' a from dual
)
... which yields
2010-01-02
于 2012-05-10T13:12:15.470 回答
1
使用该MEDIAN()
功能。
于 2012-05-10T13:11:49.443 回答