| GroupAggregate (cost=393.85..395.10 rows=25 width=214) |
| Group Key: ci.id |
| -> Sort (cost=393.85..394.00 rows=58 width=160) |
| Sort Key: ci.id |
| -> Hash Right Join (cost=136.85..392.15 rows=58 width=160) |
| Hash Cond: (c.client_industry = ci.id) |
| -> Hash Join (cost=135.29..390.41 rows=58 width=14) |
| Hash Cond: (p.used_client = c.id) |
| -> Seq Scan on tbl_projects p (cost=0.00..254.97 rows=58 width=14) |
| Filter: ((bargain_date >= '2026-01-01'::date) AND (bargain_date <= '2026-12-31'::date) AND (bargain_date >= '2026-01-01'::date) AND (bargain_date < '2027-01-01 00:00:00'::timestamp without time zone) AND (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5332,5449,5467,5476}'::integer[]))) |
| -> Hash (cost=110.13..110.13 rows=2013 width=8) |
| -> Seq Scan on tbl_clients c (cost=0.00..110.13 rows=2013 width=8) |
| -> Hash (cost=1.25..1.25 rows=25 width=150) |
| -> Seq Scan on tbl_client_industries ci (cost=0.00..1.25 rows=25 width=150) |