in you example you have ID 101 with only 1 date, but @lstockman wrote I could have 300 dates.
Will there be missing dates in the possible arrayed date-columns for an ID where date1 is not null but maybe date2-299 are null and then date300 has a date value?
is the first found date1-300 in the array the start-date and the last date found the records to be evaluated?
Can you please provide a few more datalines representing what you may have coming in.
Please post a sample of your wants related to the datalines you post.
Thank you.
... View more