GroupAggregate (cost=350.44..350.92 rows=6 width=214) |
Group Key: ct.id |
-> Merge Left Join (cost=350.44..350.67 rows=13 width=160) |
Merge Cond: (ct.id = c.client_type) |
-> Sort (cost=1.14..1.15 rows=6 width=150) |
Sort Key: ct.id |
-> Seq Scan on tbl_client_types ct (cost=0.00..1.06 rows=6 width=150) |
-> Sort (cost=349.31..349.34 rows=13 width=14) |
Sort Key: c.client_type |
-> Nested Loop (cost=0.28..349.07 rows=13 width=14) |
-> Seq Scan on tbl_projects p (cost=0.00..261.23 rows=13 width=14) |
Filter: ((bargain_date >= '2025-01-01'::date) AND (bargain_date < '2026-01-01 00:00:00'::timestamp without time zone) AND (project_status = 3) AND (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420}'::integer[])) AND (created_by = ANY ('{5329,5332,5420,1001,5087,5300,5311,5295,1013,1004,1005}'::integer[]))) |
-> Index Scan using tbl_clients_pkey on tbl_clients c (cost=0.28..6.76 rows=1 width=8) |
Index Cond: (id = p.client_id) |