Aggregate (cost=332.97..332.98 rows=1 width=32) |
-> Hash Join (cost=284.12..331.56 rows=563 width=6) |
Hash Cond: (scp.contract_id = c.id) |
-> Seq Scan on tbl_sales_contract_payments scp (cost=0.00..34.77 rows=1877 width=10) |
-> Hash (cost=278.41..278.41 rows=457 width=4) |
-> Hash Join (cost=219.16..278.41 rows=457 width=4) |
Hash Cond: (c.from_project = p.id) |
-> Seq Scan on tbl_sales_contracts c (cost=0.00..55.24 rows=1524 width=8) |
-> Hash (cost=208.63..208.63 rows=842 width=4) |
-> Seq Scan on tbl_projects p (cost=0.00..208.63 rows=842 width=4) |
Filter: ((project_status = 3) AND (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420}'::integer[]))) |