| Aggregate (cost=562.16..562.17 rows=1 width=32) |
| -> Hash Join (cost=36.54..559.65 rows=1001 width=5) |
| Hash Cond: (t.id = r.erp_cash_cost_ticket_id) |
| -> Seq Scan on tbl_erp_cash_cost_tickets t (cost=0.00..470.94 rows=8433 width=4) |
| Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[]))) |
| -> Hash (cost=23.96..23.96 rows=1006 width=9) |
| -> Seq Scan on tbl_erp_cash_cost_ticket_bank_outs r (cost=0.00..23.96 rows=1006 width=9) |
| Filter: (erp_bank_id = 1) |