| Aggregate (cost=97.71..97.72 rows=1 width=8) |
| -> Sort (cost=96.85..96.99 rows=57 width=346) |
| Sort Key: l.settle_at DESC |
| -> HashAggregate (cost=94.62..95.19 rows=57 width=346) |
| Group Key: l.id |
| -> Hash Right Join (cost=69.23..94.48 rows=57 width=12) |
| Hash Cond: (eh.erp_bank_amount_change_log_id = l.id) |
| -> Seq Scan on tbl_erp_bank_amount_change_log_handlers eh (cost=0.00..21.65 rows=1365 width=8) |
| -> Hash (cost=68.52..68.52 rows=57 width=24) |
| -> Seq Scan on tbl_erp_bank_amount_change_logs l (cost=0.00..68.52 rows=57 width=24) |
| Filter: ((in_amount IS NOT NULL) AND (settle_at >= '2026-01-01 00:00:00+08'::timestamp with time zone) AND (settle_at <= '2026-12-31 23:59:59+08'::timestamp with time zone) AND (erp_bank_id = 1)) |