Hi I need the value in 'Needed' column, logic is provided below
Hi I need the value in 'Needed' column, logic is provided below
Lookup up the LAG function (teaching someone how to fish) if you're using at least SQL Server 2012. Actually, here's the link ...
https://www.google.com/search?q=lag+in+sql+server
18 People are following this question.