Aggregate (cost=151.76..151.77 rows=1 width=8) |
-> Group (cost=151.74..151.75 rows=1 width=293) |
Group Key: pci.id |
-> Sort (cost=151.74..151.75 rows=1 width=4) |
Sort Key: pci.id |
-> Hash Right Join (cost=108.53..151.73 rows=1 width=4) |
Hash Cond: (pcpp.purchase_invoice_id = pci.id) |
-> Seq Scan on tbl_purchase_invoice_products pcpp (cost=0.00..38.23 rows=1323 width=4) |
-> Hash (cost=108.52..108.52 rows=1 width=4) |
-> Hash Right Join (cost=76.07..108.52 rows=1 width=4) |
Hash Cond: (pip.purchase_invoice_id = pci.id) |
-> Seq Scan on tbl_purchase_invoice_projects pip (cost=0.00..27.77 rows=1777 width=8) |
-> Hash (cost=76.06..76.06 rows=1 width=12) |
-> Seq Scan on tbl_purchase_contract_invoices pci (cost=0.00..76.06 rows=1 width=12) |
Filter: ((cover_invoice_id IS NULL) AND (NOT is_cancel) AND ((invoice_type <> '-1'::smallint) OR (invoice_type IS NULL)) AND (contract_id = 3847)) |