pepperwind / answer_key /kpis /club_boxes.sql
rasinmuhammed's picture
Pepperwind Trading Co. preview, version 1.0
27ec678 verified
Raw History Blame Contribute Delete
267 Bytes
-- Club boxes, by tier
-- Club boxes by their box month.
SELECT strftime(box_month, '%Y-%m') AS month, tier AS grp, count(*) AS value FROM logistics.club_box WHERE box_month >= TIMESTAMP '2023-10-01' AND box_month < TIMESTAMP '2026-10-01' GROUP BY 1, 2 ORDER BY 1, 2