Group rows with that are less than 15 days apart and assign min/max date
问题 If the protocol_opening_date of different protocols are within 15 days of each other, i need to show them as one protocol in another column named expected start date. I don't know how to copy my table here as it looks but i'll try to explain as much as i can. So let's say if one protocol has the start_date of 24.01.2018 and end_date of 30.01.2018 and an other one has start_date of 25.01.2018 and end_date of 10.02.2018 I need to display them as a different protocol with a start_date of 24.01