2023: the year in review
Capstone. Produce the annual report for 2023: one row per month (month as YYYY-MM) with revenue, a running_total (the sum so far that year), and share — that month's percentage of the whole year, rounded to 2 decimals. A CTE for monthly revenue, a CTE for the year total, a window sum, a ROUND — everything at once. Months in order.
Tables in this exercise
invoices
id customer_id invoice_date billing_city billing_country total