QUERY PLAN
Aggregate (cost=13.85..13.86 rows=1 width=32)
-> Hash Right Join (cost=12.51..13.84 rows=1 width=6)
Hash Cond: (eipss.erp_sales_outbound_id = t.id)
-> Seq Scan on tbl_erp_inventory_product_spents eipss (cost=0.00..1.26 rows=26 width=10)
-> Hash (cost=12.50..12.50 rows=1 width=4)
-> Seq Scan on tbl_erp_sales_outbounds t (cost=0.00..12.50 rows=1 width=4)
Filter: (status = 2)