how to add 1 year to date sql code example
Example: sql server current date minus 5 years
SELECT GETDATE() 'Today',
DATEADD(day,-2,GETDATE()) 'Today - 2 Days'
SELECT GETDATE() 'Today',
DATEADD(dd,-2,GETDATE()) 'Today - 2 Days'
SELECT GETDATE() 'Today',
DATEADD(d,-2,GETDATE()) 'Today - 2 Days'