QUERY PLAN
Aggregate (cost=11.06..11.07 rows=1 width=32)
-> Hash Right Join (cost=4.55..10.55 rows=201 width=5)
Hash Cond: (eipss.erp_sales_outbound_id = t.id)
-> Seq Scan on tbl_erp_inventory_product_spents eipss (cost=0.00..5.36 rows=236 width=9)
-> Hash (cost=3.84..3.84 rows=57 width=4)
-> Seq Scan on tbl_erp_sales_outbounds t (cost=0.00..3.84 rows=57 width=4)
Filter: (status = 2)