Good afternoon Rerolled, I am in need of help with the query I'm attempting to write not giving me the results I need.
The query needs to return one line per employee with the latest schedule (can be updated 3-4 times a week based on needs) but currently either displays multiple rows or one row with mismatched data.
It's fairly basic in what I need but it won't cooperate
Normal query, returns 2 rows per this employee. Schedule was adjusted on the 4th to work earlier than originally scheduled on the 31st.
Added max to the update but did not return only one line as hoped. Tried adding max to the others.
This is as I expect logically, it's taking the latest update cell but instead of the corresponding latest start/end times its taking the highest (max) schedule times. While that would work if the schedules always got pushed to later, if they go earlier as in this example, it pulls the wrong data.
What am I missing to correct this query, either in why the max (modified date) or in another command? I need the latest updated schedule to display in this clearly not the 'max' for that day in case of multiple.
Payment for the view/help. If I can get this working my gf may be okay with sharing another of her better assets as a thank you & Mods, if this is in the wrong forum please move where needed.
The query needs to return one line per employee with the latest schedule (can be updated 3-4 times a week based on needs) but currently either displays multiple rows or one row with mismatched data.
It's fairly basic in what I need but it won't cooperate

Normal query, returns 2 rows per this employee. Schedule was adjusted on the 4th to work earlier than originally scheduled on the 31st.

Added max to the update but did not return only one line as hoped. Tried adding max to the others.

This is as I expect logically, it's taking the latest update cell but instead of the corresponding latest start/end times its taking the highest (max) schedule times. While that would work if the schedules always got pushed to later, if they go earlier as in this example, it pulls the wrong data.
What am I missing to correct this query, either in why the max (modified date) or in another command? I need the latest updated schedule to display in this clearly not the 'max' for that day in case of multiple.
Payment for the view/help. If I can get this working my gf may be okay with sharing another of her better assets as a thank you & Mods, if this is in the wrong forum please move where needed.
