QUERY PLAN
Aggregate (cost=26.96..26.97 rows=1 width=32)
-> Hash Join (cost=12.64..26.95 rows=2 width=32)
Hash Cond: (esrps.erp_sales_return_id = t.id)
-> Seq Scan on tbl_erp_sales_return_products esrps (cost=0.00..13.40 rows=340 width=36)
-> Hash (cost=12.62..12.62 rows=1 width=4)
-> Seq Scan on tbl_erp_sales_returns t (cost=0.00..12.62 rows=1 width=4)
Filter: (status = 2)