![](/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.