I Have a query where I have a parameter which I am declaring as :
declare @year varchar(10)='F2016/2017'
select forecast - lag(forecast, 1, 0)over(partition by id order by id, date) as @year - 1
Here I am getting the difference for the column forecast and want the column to be named as F2015/2016.
Is there a way I can do this ??