列表

SQL 查询中位数,并保留四位小数

代码:

select distinct round(nth_value(lat_n,(select round(count(lat_n)/2) from station))
over (order by lat_n asc
RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING),4) as median_lat
from station;

相关文章:

  • 2021-12-18
  • 2021-12-18
  • 2021-08-21
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2021-12-18
  • 2021-12-18
  • 2021-12-18
  • 2021-12-18
  • 2022-02-10
  • 2022-02-10
相关资源
相似解决方案