首页 > 解决方案 > oracle中按行数范围求和

问题描述

我有一列包含许多价格行我想确定 25 行范围的总和,然后是接下来的 25 行范围等。我已经这样做了,只适用于第一个列表:

select sum(substr(UNICOLON,-14,10)) over (order by to_number(:P22_UNI) rows between current row and 24 following) as R
from CNAM_CONCAT;

标签: oracle

解决方案



推荐阅读