| Group (cost=22.88..22.89 rows=2 width=4) |
| Group Key: u.id |
| -> Sort (cost=22.88..22.89 rows=2 width=4) |
| Sort Key: u.id |
| -> Nested Loop Left Join (cost=0.56..22.87 rows=2 width=4) |
| -> Index Scan using tbl_punch_pkey on tbl_punch p (cost=0.41..14.49 rows=2 width=4) |
| Index Cond: ((day_at >= '2026-06-01'::date) AND (day_at <= '2026-06-04'::date)) |
| Filter: ((in_at IS NOT NULL) OR (out_at IS NOT NULL)) |
| -> Index Only Scan using tbl_users_pkey on tbl_users u (cost=0.14..4.16 rows=1 width=4) |
| Index Cond: (id = p.user_id) |