-- 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