QUERY PLAN
Aggregate (cost=433.55..433.56 rows=1 width=32)
-> Hash Join (cost=3.76..433.29 rows=104 width=5)
Hash Cond: (t.id = r.erp_cash_cost_ticket_id)
-> Seq Scan on tbl_erp_cash_cost_tickets t (cost=0.00..400.68 rows=7416 width=4)
Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[])))
-> Hash (cost=2.45..2.45 rows=105 width=9)
-> Seq Scan on tbl_erp_cash_cost_ticket_bank_outs r (cost=0.00..2.45 rows=105 width=9)
Filter: (erp_bank_id = 1)