| Aggregate (cost=6.83..6.84 rows=1 width=64) |
| -> Nested Loop Left Join (cost=1.92..6.81 rows=3 width=8) |
| Filter: ((c.ledger_id = 1) OR (c.ledger_id IS NULL)) |
| -> Hash Join (cost=1.77..5.21 rows=3 width=12) |
| Hash Cond: (i.ledger_ticket_id = t.id) |
| -> Seq Scan on tbl_ledger_ticket_items i (cost=0.00..3.12 rows=112 width=20) |
| -> Hash (cost=1.76..1.76 rows=1 width=4) |
| -> Seq Scan on tbl_ledger_tickets t (cost=0.00..1.76 rows=1 width=4) |
| Filter: ((ticket_date >= '2026-06-01'::date) AND (ticket_date <= '2026-06-30'::date) AND (ledger_id = 1) AND (status = 1)) |
| -> Index Scan using tbl_ledger_account_captions_pkey on tbl_ledger_account_captions c (cost=0.14..0.52 rows=1 width=8) |
| Index Cond: (i.ledger_account_caption_id = id) |