| Aggregate (cost=94.80..94.81 rows=1 width=8) |
| -> Sort (cost=94.74..94.75 rows=4 width=346) |
| Sort Key: l.settle_at DESC |
| -> Group (cost=94.68..94.70 rows=4 width=346) |
| Group Key: l.id |
| -> Sort (cost=94.68..94.69 rows=4 width=12) |
| Sort Key: l.id |
| -> Hash Right Join (cost=68.80..94.64 rows=4 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..22.12 rows=1412 width=8) |
| -> Hash (cost=68.75..68.75 rows=4 width=24) |
| -> Seq Scan on tbl_erp_bank_amount_change_logs l (cost=0.00..68.75 rows=4 width=24) |
| Filter: ((in_amount IS NOT NULL) AND (settle_at >= '2026-05-01 00:00:00+08'::timestamp with time zone) AND (settle_at <= '2026-05-31 23:59:59+08'::timestamp with time zone) AND (erp_bank_id = 1)) |