First I need to create a sproc that will give me just a list of years from this year back to 5 years before this year. I was thinking of somehow using a table variable?
After that I need to use that value as a parameter in another sproc. How would I then say show all Dates that contain the year that is picked? I know how to write the parameter and everything I just need the Where clause part of it.
The date in the column are like this 2010/01/30 00:00.000