| Result (cost=13.30..13.31 rows=1 width=1) |
| InitPlan 1 (returns $0) |
| -> Seq Scan on tbl_punch_leaves (cost=0.00..13.30 rows=1 width=0) |
| Filter: ((created_by = 1000) AND (status = 1) AND (((leave_start < '2026-05-30'::date) AND (leave_end > '2026-05-30'::date)) OR ((leave_start = '2026-05-30'::date) AND (leave_start_type = 1)) OR (leave_end = '2026-05-30'::date) OR ((leave_start <= '2026-05-30'::date) AND (leave_end >= '2026-05-30'::date) AND (leave_start_time IS NOT NULL)))) |