I need an SP to pick up today’s date, and then return the last 6 months values.
E g if today is March 1st,
then return 09, 10, 11, 12, 01 & 02
I can declare @mon1 numeric
@mon2 numeric
…… @mon6 numeric
But then I have tried DATEDIFF, but cannot get the syntax.
I use SQL V 8.00.194
E g if today is March 1st,
then return 09, 10, 11, 12, 01 & 02
I can declare @mon1 numeric
@mon2 numeric
…… @mon6 numeric
But then I have tried DATEDIFF, but cannot get the syntax.
I use SQL V 8.00.194