I would like to sum a table for the past 5 years. I have written the query that shows the following results:
SELECT Year(OPENED) [year], SUM(CASE WHEN OPENED