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

Subtract Year from Year and Month

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

I have @yearmonth='2017-06' . I want another variable to store 1 year before value from the @Yearmonth. eg-

Viewing all articles
Browse latest Browse all 3145

Trending Articles