I have a simple data set like below:
Employee Data
I need minimum start date & max end date of an employee whenever there is a dept id change or status cod