Forum Discussion
jisaenz98
Mar 29, 2024Copper Contributor
Problems with window function LAG
I am having Problems trying to use the lag Function to calculate the Previous Value of a row. I Ma Uing the following statement USE [Site Shortage Excess]; GO UPDATE [Site Shortage Excess] SET...
jisaenz1330
Mar 30, 2024Copper Contributor
I found the issue was related with select * in the subquery I changed to only use the fields that I need for the Lag function and works