I have a table called tblLoginLogout that has 4 fields. Date, Name, Logintime, and Logouttime. The data looks like this:
date name Logintime logouttime
2/8/2016 Joe blow 8:00 am 9:02 pm
2/8/2016 Joe blow 9:04 am 10:02 am
2/8/2016 Joe blow 10:03 am 2:00 pm
2/8/2016 Joe blow 2:02 am 5:00 pm
2/9/2016 Joe blow 8:04 am 5:03pm
2/10/2016 Joe blow 8:00 am 12:00pm
2/10/2016 Joe blow 1:00 pm 5:00 pm
I am trying to create a new table with only the records that show the minimum login time and the maximum logout time for each person for each date. So the new table in the above example would look like this:
date name Logintime logouttime
2/8/2016 Joe blow 8:00 am 5:00 pm
2/9/2016 Joe blow 8:04 am 5:03 pm
2/10/2016 Joe blow 8:00 am 5:00 pm
Is this possible to do? Can anyone point me in the right direction?
Thanks in advance!
Paul
date name Logintime logouttime
2/8/2016 Joe blow 8:00 am 9:02 pm
2/8/2016 Joe blow 9:04 am 10:02 am
2/8/2016 Joe blow 10:03 am 2:00 pm
2/8/2016 Joe blow 2:02 am 5:00 pm
2/9/2016 Joe blow 8:04 am 5:03pm
2/10/2016 Joe blow 8:00 am 12:00pm
2/10/2016 Joe blow 1:00 pm 5:00 pm
I am trying to create a new table with only the records that show the minimum login time and the maximum logout time for each person for each date. So the new table in the above example would look like this:
date name Logintime logouttime
2/8/2016 Joe blow 8:00 am 5:00 pm
2/9/2016 Joe blow 8:04 am 5:03 pm
2/10/2016 Joe blow 8:00 am 5:00 pm
Is this possible to do? Can anyone point me in the right direction?
Thanks in advance!
Paul