1

我需要计算一列的中值,该列的数据类型为 date。

4

2 回答 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 回答