Hello,
I need some help with a query. I have a big employee list (from HR system) showing all the different types changes in the record including changes in weekly working hours, this means some employee could be on the list multiple times (with the same unique employee ID) if they have more than one change. The list has a number of columns including Employee ID, Change effective Start, Change effective End, Hours. - what I am trying to find out is all the employees who changed their hours between the financial year (e.g. 01 April 2019 to 31 March 2020) and to show - for example, if the employee has 10 entries in the list (for all sorts of changes) and one entry for showing changes in their hours on 05/08/2019, then it should show that line and also the line with the previous value.
Hope this makes sense, the list returns over 10k rows and essentially what I am trying to do is return any changes in hours between the date range, and if they haven't changed their hours then return the latest row which will show the current hours.
I need some help with a query. I have a big employee list (from HR system) showing all the different types changes in the record including changes in weekly working hours, this means some employee could be on the list multiple times (with the same unique employee ID) if they have more than one change. The list has a number of columns including Employee ID, Change effective Start, Change effective End, Hours. - what I am trying to find out is all the employees who changed their hours between the financial year (e.g. 01 April 2019 to 31 March 2020) and to show - for example, if the employee has 10 entries in the list (for all sorts of changes) and one entry for showing changes in their hours on 05/08/2019, then it should show that line and also the line with the previous value.
Hope this makes sense, the list returns over 10k rows and essentially what I am trying to do is return any changes in hours between the date range, and if they haven't changed their hours then return the latest row which will show the current hours.