need help padding data so LAG function can calculate correctly

前端 未结 0 737
暗喜
暗喜 2020-12-07 13:33

How can I pad the data so that I can get 0 for col3 on 9/4? Right now, it\'s getting 4 from 9/2?

[expected result][1] [1]: https://i.stack.imgur.com/gyrjF.png

相关标签:
回答
  • 消灭零回复
提交回复
热议问题