| GroupAggregate (cost=221.19..221.91 rows=24 width=214) |
| Group Key: ci.id |
| -> Sort (cost=221.19..221.25 rows=24 width=160) |
| Sort Key: ci.id |
| -> Hash Right Join (cost=6.94..220.64 rows=24 width=160) |
| Hash Cond: (c.client_industry = ci.id) |
| -> Nested Loop (cost=5.40..219.07 rows=10 width=14) |
| -> Bitmap Heap Scan on tbl_projects p (cost=5.12..148.11 rows=10 width=14) |
| Recheck Cond: (created_by = 1001) |
| Filter: ((bargain_date >= '2025-01-01'::date) AND (bargain_date <= '2025-12-31'::date) AND (bargain_date >= '2025-01-01'::date) AND (bargain_date < '2026-01-01 00:00:00'::timestamp without time zone)) |
| -> Bitmap Index Scan on tbl_projects_created_by_idx (cost=0.00..5.12 rows=112 width=0) |
| Index Cond: (created_by = 1001) |
| -> Index Scan using tbl_clients_pkey on tbl_clients c (cost=0.28..7.09 rows=1 width=8) |
| Index Cond: (id = p.used_client) |
| -> Hash (cost=1.24..1.24 rows=24 width=150) |
| -> Seq Scan on tbl_client_industries ci (cost=0.00..1.24 rows=24 width=150) |