QUERY PLAN
Aggregate (cost=3.12..3.13 rows=1 width=32)
-> Hash Right Join (cost=1.22..3.11 rows=4 width=5)
Hash Cond: (eipss.erp_sales_outbound_id = t.id)
-> Seq Scan on tbl_erp_inventory_product_spents eipss (cost=0.00..1.68 rows=68 width=9)
-> Hash (cost=1.21..1.21 rows=1 width=4)
-> Seq Scan on tbl_erp_sales_outbounds t (cost=0.00..1.21 rows=1 width=4)
Filter: (status = 2)