SELECT strftime('%Y', InvoiceDate) as Year, SUM(TOTAL) as YearlyTotal FROM Invoice WHERE strftime('%Y', InvoiceDate) = '2009' OR strftime('%Y', InvoiceDate) = '2011' GROUP BY strftime('%Y', InvoiceDate); SELECT * FROM Invoice;