QUERY PLAN
Aggregate (cost=4.02..4.03 rows=1 width=32)
-> Hash Join (cost=1.19..4.01 rows=2 width=6)
Hash Cond: (t.id = r.erp_other_collect_ticket_id)
-> Seq Scan on tbl_erp_other_collect_tickets t (cost=0.00..2.59 rows=44 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.16..1.16 rows=2 width=10)
-> Seq Scan on tbl_erp_other_collect_ticket_approve_borrow_settles r (cost=0.00..1.16 rows=2 width=10)
Filter: (approve_id = 2742)