sql中的lead函数无法按预期工作

问题描述 投票:0回答:1

我正在使用以下查询来标识newEndDate

enter image description here

但是,我得到的结果是

enter image description here

为什么我最后一行没有得到newEnddate?请帮助

sql sql-server sql-server-2012
1个回答
0
投票

使用:

lead(col, 1, col1) over (. . .)
© www.soinside.com 2019 - 2024. All rights reserved.