Aggregate (cost=466.86..466.87 rows=1 width=32) |
-> Hash Right Join (cost=292.00..466.86 rows=1 width=8) |
Hash Cond: (ca.case_id = c.id) |
-> Seq Scan on tbl_case_assignments ca (cost=0.00..154.92 rows=7592 width=12) |
-> Hash (cost=291.99..291.99 rows=1 width=4) |
-> Seq Scan on tbl_cases c (cost=0.00..291.99 rows=1 width=4) |
Filter: ((closed_at >= '2025-07-16 00:00:00+08'::timestamp with time zone) AND (closed_at <= '2025-07-16 23:59:59+08'::timestamp with time zone) AND (deduct_points_from = 1001)) |