I am trying to get for this example table in MSSQL the min start and max stop grouped by activityid, dateid and personid.
The source table looks like the one below :<