Revenue by month

The finance team reviews the books by month. Join invoices with invoice_lines and group by the year-month of the invoice date — strftime('%Y-%m', invoice_date) — showing each month with its total revenue, rounded to 2 decimals.

Tables in this exercise
invoices
id customer_id invoice_date billing_city billing_country total
invoice_lines
id invoice_id track_id quantity unit_price

Back to the chapter