| Aggregate (cost=61.92..61.93 rows=1 width=32) |
| -> Sort (cost=61.76..61.78 rows=11 width=1018) |
| Sort Key: b.is_delete, b.sort |
| -> GroupAggregate (cost=61.27..61.57 rows=11 width=1018) |
| Group Key: b.id |
| -> Merge Left Join (cost=61.27..61.37 rows=11 width=41) |
| Merge Cond: (b.id = t.erp_bank_id) |
| -> Sort (cost=1.30..1.33 rows=11 width=9) |
| Sort Key: b.id |
| -> Seq Scan on tbl_erp_banks b (cost=0.00..1.11 rows=11 width=9) |
| -> GroupAggregate (cost=59.97..59.99 rows=1 width=68) |
| Group Key: t.erp_bank_id |
| -> Sort (cost=59.97..59.98 rows=1 width=9) |
| Sort Key: t.erp_bank_id |
| -> Seq Scan on tbl_erp_bank_amount_change_logs t (cost=0.00..59.96 rows=1 width=9) |
| Filter: (settle_at <= '2024-04-01 00:00:00+08'::timestamp with time zone) |