| HashAggregate (cost=123.44..124.34 rows=60 width=76) |
| Group Key: gb.id |
| -> Hash Left Join (cost=106.65..122.84 rows=60 width=25) |
| Hash Cond: (prod.product_brand = gb.id) |
| -> Hash Join (cost=98.75..114.78 rows=60 width=17) |
| Hash Cond: (eip.product_id = prod.id) |
| -> Seq Scan on tbl_erp_inventory_products eip (cost=0.00..15.88 rows=60 width=17) |
| Filter: (((erp_purchase_inbound_id IS NOT NULL) OR (erp_purchase_gift_id IS NOT NULL) OR (erp_inventory_build_id IS NOT NULL) OR (erp_inventory_disassemble_id IS NOT NULL) OR (erp_inventory_start_id IS NOT NULL)) AND (inventory > '0'::numeric)) |
| -> Hash (cost=72.22..72.22 rows=2122 width=8) |
| -> Seq Scan on tbl_products prod (cost=0.00..72.22 rows=2122 width=8) |
| -> Hash (cost=5.18..5.18 rows=218 width=12) |
| -> Seq Scan on tbl_product_brands gb (cost=0.00..5.18 rows=218 width=12) |