select id, grp_factor,
sum (id) over(
partition by grp_factor 
order by id 
rows between unbounded preceding and current row
) running_sum
from NUMBERS 
where ID <1000;


连续聚合在财务报表中应该再常见不过了。

Oracle ->> 连续聚合

相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2021-07-13
  • 2022-03-06
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-02-12
相关资源
相似解决方案