| Aggregate (cost=68.01..68.02 rows=1 width=32) |
| -> Sort (cost=67.91..67.92 rows=7 width=1018) |
| Sort Key: b.is_delete, b.sort |
| -> GroupAggregate (cost=67.67..67.81 rows=7 width=1018) |
| Group Key: b.id |
| -> Sort (cost=67.67..67.69 rows=7 width=41) |
| Sort Key: b.id |
| -> Hash Left Join (cost=66.47..67.57 rows=7 width=41) |
| Hash Cond: (b.id = l.erp_bank_id) |
| -> Seq Scan on tbl_erp_banks b (cost=0.00..1.07 rows=7 width=9) |
| -> Hash (cost=66.38..66.38 rows=7 width=36) |
| -> Subquery Scan on l (cost=66.22..66.38 rows=7 width=36) |
| -> HashAggregate (cost=66.22..66.31 rows=7 width=68) |
| Group Key: t.erp_bank_id |
| -> Seq Scan on tbl_erp_bank_amount_change_logs t (cost=0.00..59.80 rows=1285 width=9) |
| Filter: (settle_at <= '2026-01-01 00:00:00+08'::timestamp with time zone) |