If the
SELECT_DATE
is stored as a date in
PA_TIME_SCHEDULING_table
try explicitly converting the start and end dates to date. You should never trust on implicit conversion since it's affected by database settings,
For example
select STATUS,SELECT_DATE
from PA_TIME_SCHEDULING_table where
SELECT_DATE between convert(date, '2018/04/17', 111) and convert(date, '2018/04/19', 111)
If the
SELECT_DATE
is stored as a
varchar
, then you could achieve the correct result by converting it into a date in the where clause, but instead of doing that, I would recommend changing the data type into
date
.