I have a table with the following columns
effective_start_date
effective_end_date
person_id
This is on Oracle DB.
I am writing a query to get me the person active for the current sysdate, using the following query.
select startDate, endDate, sysdate
from dateTable
where sysdate between startDate and endDate;
The issue is that this where clause never seems to get applied. The result contains rows that dont satisfy this condition. Any suggestions on what i might be missing.