Limit (cost=47.68..47.69 rows=1 width=155) |
-> Group (cost=47.68..47.69 rows=1 width=155) |
Group Key: sci.id |
-> Sort (cost=47.68..47.69 rows=1 width=155) |
Sort Key: sci.id |
-> Seq Scan on tbl_sales_contract_invoices sci (cost=0.00..47.67 rows=1 width=155) |
Filter: ((cover_invoice_id IS NULL) AND (NOT is_cancel) AND ((invoice_type <> '-1'::smallint) OR (invoice_type IS NULL)) AND (contract_id = 4074)) |