Im trying to filter out the data between the date range, which also includes null values, eg: start_date = 18/01/2013 and end_date = 20/01/2013
In some data in the database the start_date is 19/01/2013 and end_date = null; I need to include this particular value as well, Here's the query I've tried so far
SELECT T1.START_DATE,
T1.END_DATE
FROM myTable T1
WHERE to_date(T1.START_DATE, 'DD/MM/yyyy HH24:MI:SS') >= to_date('01/01/2013 10:58:58', 'DD/MM/yyyy HH24:MI:SS')
AND to_date(T1.END_DATE, 'DD/MM/yyyy HH24:MI:SS') <= to_date(IS NULL('21/01/2013 10:58:58', 0), 'DD/MM/yyyy HH24:MI:SS')
I still can't find the results with null values, Please let me know how will i go about solving this issue.
Thanks