I have a Table With PatientID and FromDate and Todate,I want to generate the dates between these two dates and one more main important scenario is,If we have Null in the To