| Aggregate (cost=27.90..27.91 rows=1 width=8) |
| -> Sort (cost=27.89..27.89 rows=1 width=207) |
| Sort Key: r.created_at DESC |
| -> HashAggregate (cost=27.87..27.88 rows=1 width=207) |
| Group Key: r.id |
| -> Hash Right Join (cost=2.05..25.44 rows=970 width=12) |
| Hash Cond: (crvr.punch_overtime_id = r.id) |
| -> Seq Scan on tbl_punch_overtime_cancel_verify_rels crvr (cost=0.00..19.70 rows=970 width=4) |
| -> Hash (cost=2.04..2.04 rows=1 width=12) |
| -> Nested Loop Left Join (cost=0.00..2.04 rows=1 width=12) |
| Join Filter: (rvr.punch_overtime_id = r.id) |
| -> Seq Scan on tbl_punch_overtimes r (cost=0.00..1.02 rows=1 width=16) |
| Filter: ((overtime_start >= '2026-06-02 00:00:00+08'::timestamp with time zone) AND (overtime_start <= '2026-06-02 23:59:59+08'::timestamp with time zone) AND (created_by = 1001)) |
| -> Seq Scan on tbl_punch_overtime_verify_rels rvr (cost=0.00..1.01 rows=1 width=4) |