Aggregate (cost=616.07..616.08 rows=1 width=32) |
-> Hash Join (cost=564.22..614.73 rows=533 width=6) |
Hash Cond: (sci.contract_id = c.id) |
-> Seq Scan on tbl_sales_contract_invoices sci (cost=0.00..38.34 rows=1834 width=10) |
-> Hash (cost=558.47..558.47 rows=460 width=4) |
-> Hash Join (cost=327.46..558.47 rows=460 width=4) |
Hash Cond: (c.project_id = p.id) |
-> Seq Scan on tbl_sales_contracts c (cost=0.00..226.84 rows=1584 width=8) |
-> Hash (cost=316.85..316.85 rows=849 width=4) |
-> Seq Scan on tbl_projects p (cost=0.00..316.85 rows=849 width=4) |
Filter: (created_by = ANY ('{1004,1005,1013,5087}'::integer[])) |