| Aggregate (cost=614.42..614.43 rows=1 width=32) |
| -> Hash Right Join (cost=416.89..614.41 rows=1 width=8) |
| Hash Cond: (ca.case_id = c.id) |
| -> Seq Scan on tbl_case_assignments ca (cost=0.00..174.95 rows=8595 width=12) |
| -> Hash (cost=416.88..416.88 rows=1 width=4) |
| -> Seq Scan on tbl_cases c (cost=0.00..416.88 rows=1 width=4) |
| Filter: ((closed_at >= '2026-06-18 00:00:00+08'::timestamp with time zone) AND (closed_at <= '2026-06-18 23:59:59+08'::timestamp with time zone) AND (deduct_points_from = ANY ('{5332,1001,5087,5300,5311,5295,1013,5476,1004,1005}'::integer[]))) |