| Aggregate (cost=802.14..802.15 rows=1 width=64) |
| -> Hash Join (cost=560.10..802.05 rows=18 width=4) |
| Hash Cond: (cr.case_id = c.id) |
| -> Seq Scan on tbl_callback_records cr (cost=0.00..241.60 rows=133 width=8) |
| Filter: ((callback_date >= '2026-01-01'::date) AND (callback_date < '2027-01-01 00:00:00'::timestamp without time zone) AND ((satisfaction_score <> 0) OR (skill_score <> 0))) |
| -> Hash (cost=546.66..546.66 rows=1075 width=4) |
| -> Subquery Scan on c (cost=525.16..546.66 rows=1075 width=4) |
| -> HashAggregate (cost=525.16..535.91 rows=1075 width=285) |
| Group Key: c_1.id |
| -> Hash Right Join (cost=387.61..522.48 rows=1075 width=4) |
| Hash Cond: (cs.case_id = c_1.id) |
| -> Seq Scan on tbl_case_services cs (cost=0.00..115.34 rows=7434 width=4) |
| -> Hash (cost=374.17..374.17 rows=1075 width=4) |
| -> Seq Scan on tbl_cases c_1 (cost=0.00..374.17 rows=1075 width=4) |
| Filter: ((case_type = 1) AND (case_status = 5) AND (last_engineer = ANY ('{5085,5248,1015,1022,5064,1023}'::integer[]))) |