QUERY PLAN
Aggregate (cost=2.71..2.72 rows=1 width=8)
-> HashAggregate (cost=1.85..2.23 rows=38 width=59)
Group Key: t.id
-> Seq Scan on tbl_ledger_tickets t (cost=0.00..1.76 rows=38 width=4)
Filter: ((ticket_date >= '2026-05-01'::date) AND (ticket_date <= '2026-05-31'::date) AND (ledger_id = 1) AND (status = '1'::smallint))