| Aggregate (cost=75.26..75.27 rows=1 width=32) |
| -> Sort (cost=75.09..75.12 rows=11 width=1018) |
| Sort Key: b.is_delete, b.sort |
| -> GroupAggregate (cost=74.68..74.90 rows=11 width=1018) |
| Group Key: b.id |
| -> Sort (cost=74.68..74.71 rows=11 width=41) |
| Sort Key: b.id |
| -> Hash Left Join (cost=73.34..74.49 rows=11 width=41) |
| Hash Cond: (b.id = n.erp_bank_id) |
| -> Seq Scan on tbl_erp_banks b (cost=0.00..1.11 rows=11 width=9) |
| -> Hash (cost=73.25..73.25 rows=7 width=36) |
| -> Subquery Scan on n (cost=73.10..73.25 rows=7 width=36) |
| -> HashAggregate (cost=73.10..73.18 rows=7 width=68) |
| Group Key: t.erp_bank_id |
| -> Seq Scan on tbl_erp_bank_amount_change_logs t (cost=0.00..64.36 rows=1748 width=9) |
| Filter: ((settle_at >= '2024-04-01 00:00:00+08'::timestamp with time zone) AND (settle_at <= '2026-05-31 23:59:59+08'::timestamp with time zone)) |