![](/img/trans.png)
[英]Big query/sql to maintain the same data from next row onwards in the same column itself, got based on some condition in the current row
[英]Need next 6 months data in Big query from rows to columns
我的数据集中有一个日期字段,我想要一个名为 units 的列的总和。其中日期的 monht 名称应该在列中,它应该是从当前月份开始的接下来的 6 个月。
零件号日期单位 1213 21/9/23 1 1213 21/9/23 1 1213 21/10/23 1 1213 21/10/23 1 1213 21/11/23 1 1213 21/11/23 1 1213 21/12/23 1 1213 21/12/23 1 1213 21/12/23 1 1213 21/12/23 1
输出
零件号当前月份 当前月份+1 当前月份+2 当前月份+3 1213 2 2 2 4
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.