Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

subtract 1 month from the year and month.

$
0
0
subtract 1 month from the year and month.

I have @yearmonth='2018-03' .i have data -'2018-03' and i want to have '2018-02' .it should work for last 4-5 months. I should be able to get to 2017-10 etc.
please help. Thanks.

Viewing all articles
Browse latest Browse all 3145

Trending Articles