| GroupAggregate (cost=199.19..200.08 rows=25 width=76) |
| Group Key: ci.id |
| -> Merge Left Join (cost=199.19..199.39 rows=25 width=22) |
| Merge Cond: (ci.id = c.client_industry) |
| -> Sort (cost=1.83..1.89 rows=25 width=12) |
| Sort Key: ci.id |
| -> Seq Scan on tbl_client_industries ci (cost=0.00..1.25 rows=25 width=12) |
| -> Sort (cost=197.36..197.37 rows=5 width=14) |
| Sort Key: c.client_industry |
| -> Nested Loop (cost=5.66..197.30 rows=5 width=14) |
| -> Bitmap Heap Scan on tbl_projects p (cost=5.38..159.82 rows=5 width=14) |
| Recheck Cond: (created_by = 1001) |
| 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)) |
| -> Bitmap Index Scan on tbl_projects_created_by_idx (cost=0.00..5.38 rows=147 width=0) |
| Index Cond: (created_by = 1001) |
| -> Index Scan using tbl_clients_pkey on tbl_clients c (cost=0.28..7.49 rows=1 width=8) |
| Index Cond: (id = p.used_client) |