I have a SQL statement that I need to change the year in the statement for a period of years. I need to essentially have let’s say 10 SQL statements that increment the year by 1 for 10 times.
Part of the SQL statement is:
So the year 2013 need to change to 2014 and than 2015 etc.
I have come up with the following but can’t figure out how to reiterate it.
Any help would be appreciated…
Thank you all very much. That gets me headed in the right direction. I had looked at 4 books and the reference pages but it is hard to find your way through the forest of expressions.