| Aggregate (cost=76.68..76.69 rows=1 width=32) |
| -> Sort (cost=76.52..76.54 rows=11 width=1018) |
| Sort Key: b.is_delete, b.sort |
| -> GroupAggregate (cost=75.94..76.33 rows=11 width=1018) |
| Group Key: b.id |
| -> Sort (cost=75.94..75.97 rows=11 width=79) |
| Sort Key: b.id |
| -> Hash Left Join (cost=74.56..75.75 rows=11 width=79) |
| Hash Cond: (b.id = f.erp_bank_id) |
| -> Hash Left Join (cost=1.22..2.38 rows=11 width=15) |
| Hash Cond: (b.id = t.id) |
| -> Seq Scan on tbl_erp_banks b (cost=0.00..1.11 rows=11 width=9) |
| -> Hash (cost=1.14..1.14 rows=7 width=10) |
| -> Seq Scan on tbl_erp_banks t (cost=0.00..1.14 rows=7 width=10) |
| Filter: (created_at <= '2026-05-31 23:59:59+08'::timestamp with time zone) |
| -> Hash (cost=73.25..73.25 rows=7 width=68) |
| -> Subquery Scan on f (cost=73.07..73.25 rows=7 width=68) |
| -> HashAggregate (cost=73.07..73.18 rows=7 width=68) |
| Group Key: t_1.erp_bank_id |
| -> Seq Scan on tbl_erp_bank_amount_change_logs t_1 (cost=0.00..59.96 rows=1748 width=15) |
| Filter: (settle_at <= '2026-05-31 23:59:59+08'::timestamp with time zone) |