I have a table with list of employees.
For each employee there are name, surname, start_date, end_date, department.
Each employee has one record for each year, then if one has worked for n years in the company in the table there are n rows.
Now, I have to select only the employees that in the several years have changed their department.
How can I do?