Aggregate (cost=43.11..43.12 rows=1 width=8) |
-> Group (cost=43.07..43.08 rows=2 width=330) |
Group Key: sci.id |
-> Sort (cost=43.07..43.08 rows=2 width=4) |
Sort Key: sci.id |
-> Seq Scan on tbl_sales_contract_invoices sci (cost=0.00..43.06 rows=2 width=4) |
Filter: ((cover_invoice_id IS NULL) AND (invoice_type = '2'::smallint)) |