oracle - 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;
解决方案
推荐阅读
- python - 如何在 python 或 pyspark 或 SQL 中旋转非数值和交叉连接
- azure - 如何通过 IMAP 访问 Outlook 电子邮件帐户
- java - 在 JPanel 中滚动 JFrame
- webpack - Electron forge 在构建中捆绑静态资产
- angular - 如何解决 Visual Studio 中 TypeScript 上的语法检查器错误
- python - 检测元素何时刷新,即使值没有改变
- python - PyGame App NameError:未定义名称“事件”
- html - 图片标签未应用
- istio - Envoy 的节俭率限制
- json - 想从 firestore 中的 data() 方法中读取特定项目