| Aggregate (cost=405.29..405.30 rows=1 width=8) |
| -> Group (cost=405.27..405.28 rows=1 width=4) |
| Group Key: c.id |
| -> Sort (cost=405.27..405.28 rows=1 width=4) |
| Sort Key: c.id |
| -> Nested Loop (cost=0.29..405.26 rows=1 width=4) |
| -> Seq Scan on tbl_case_assignments ca (cost=0.00..210.26 rows=29 width=4) |
| Filter: ((assignment_status = ANY ('{1,2}'::integer[])) AND (engineer_id = 1001)) |
| -> Index Scan using tbl_cases_pkey on tbl_cases c (cost=0.29..6.65 rows=1 width=8) |
| Index Cond: (id = ca.case_id) |
| Filter: (case_status = ANY ('{1,2,3}'::integer[])) |