QUERY PLAN
Aggregate (cost=2.22..2.23 rows=1 width=32)
-> Hash Join (cost=1.12..2.21 rows=4 width=5)
Hash Cond: (esrps.erp_sales_return_id = t.id)
-> Seq Scan on tbl_erp_sales_return_products esrps (cost=0.00..1.06 rows=6 width=9)
-> Hash (cost=1.07..1.07 rows=4 width=4)
-> Seq Scan on tbl_erp_sales_returns t (cost=0.00..1.07 rows=4 width=4)
Filter: (status = 2)