need to make the start date and end date columns from the date column. I have a table of employees and the dates on which they are on the vacation but I need to reduce the table so that there is no separate row for each date if that date is part of a vacation that lasts more than one day. But care should be taken that one person can be more than one period per year on vacation and that two people or more can be the on same period on vacation. How to do it? Example Input:
Name Date
Ivana 12/25/2020
Ivana 12/26/2020
Ivana 12/27/2020
Ivana 4/20/2020
Ivana 4/21/2020
Ivana 5/1/2020
Jelena 4/20/2020
Jelena 4/21/2020
Expected Output:
Name Start Date EndDate
Ivana 12/25/2020 12/27/2020
Ivana 4/20/2020 4/21/2020
Ivana 5/1/2020 5/1/2020
Jelena 4/20/2020 4/21/2020