QUERY PLAN
Aggregate (cost=3.39..3.40 rows=1 width=32)
-> Hash Join (cost=1.57..3.35 rows=14 width=6)
Hash Cond: (t.id = r.erp_other_income_ticket_id)
-> Seq Scan on tbl_erp_other_income_tickets t (cost=0.00..1.50 rows=37 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.39..1.39 rows=15 width=10)
-> Seq Scan on tbl_erp_other_income_ticket_bank_ins r (cost=0.00..1.39 rows=15 width=10)
Filter: (erp_bank_id = 1)