I have table like below,
Order_id Created_Date Approved_Date
_______________________________________________
1 2016-08-01 2016-08-05
2 2016-07-01 2016-07-04
3 2016-06-01 NULL
Select * from table1 where Approved_date between '2016-05-01' and '2016-08-31'
If the Approved_date is NULL, it should consider Created_date dynamically.