| Aggregate (cost=36.70..36.72 rows=1 width=32) |
| -> Nested Loop Left Join (cost=34.23..36.67 rows=3 width=72) |
| Join Filter: (t.id = b.id) |
| -> Hash Left Join (cost=34.23..35.31 rows=3 width=68) |
| Hash Cond: (b.id = f.erp_bank_id) |
| -> Seq Scan on tbl_erp_banks b (cost=0.00..1.07 rows=3 width=4) |
| Filter: (type = 1) |
| -> Hash (cost=34.16..34.16 rows=5 width=68) |
| -> Subquery Scan on f (cost=34.04..34.16 rows=5 width=68) |
| -> HashAggregate (cost=34.04..34.11 rows=5 width=68) |
| Group Key: t_1.erp_bank_id |
| -> Seq Scan on tbl_erp_bank_amount_change_logs t_1 (cost=0.00..28.02 rows=802 width=15) |
| Filter: (settle_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) |
| -> Materialize (cost=0.00..1.10 rows=6 width=12) |
| -> Seq Scan on tbl_erp_banks t (cost=0.00..1.07 rows=6 width=12) |
| Filter: (created_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) |