This repository has been archived on 2026-10-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
chinook/total_invoices_{year}.sql
T
2022-02-21 15:53:22 -06:00

7 lines
211 B
SQL

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