SQL Server Transact Basic to Expert - Incrementing a date value (Year) using queryKarthikeyan Anbarasan15yPublished Jun 16, 2011, 12:00 AMUpdated Jun 16, 2011, 8:52 AM4.1k00Reactions×25BlogThis blog shows how to do an year increment in the output using SQL QueryExample:SELECT DATEADD(yy, -1, '2/2/2010')The expected result would be 2011-02-02 00:00:00.000CommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.