File size: 316 Bytes
27ec678 | 1 2 3 4 | -- Expense claims submitted, by currency
-- Totals of expense claims by the month submitted.
SELECT strftime(submitted_at, '%Y-%m') AS month, currency AS grp, sum(total) AS value FROM hr.expense_claim WHERE submitted_at >= TIMESTAMP '2023-10-01' AND submitted_at < TIMESTAMP '2026-10-01' GROUP BY 1, 2 ORDER BY 1, 2
|