create table a7(id integer, value integer);

insert into a7 values(1,100);

insert into a7 values(2,200);

insert into a7 values(3,300);

insert into a7 values(4,400);

insert into a7 values(5,500);

 

select id, value, cume_dist() over (order by id) as percent from a7;

1   100   0.2

2   200   0.4

3   300   0.6

4   400   0.8

5   500   1

相关文章:

  • 2022-12-23
  • 2021-09-08
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2023-03-15
猜你喜欢
  • 2021-08-29
  • 2021-07-12
  • 2021-07-25
  • 2021-06-30
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案