pepperwind / answer_key /kpis /expense_claimed.sql
rasinmuhammed's picture
Pepperwind Trading Co. preview, version 1.0
27ec678 verified
Raw History Blame Contribute Delete
316 Bytes
-- 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