Hi,
I have Employee table with relevant fields
Id Name logInTime Logouttime
1 a 3-6-2020 09:45:12 3-6-2020 12:23:34
1 a 3-6-2020 14:10:45 3-6-2020 18:34:20
1 a 5-6-2020 10:20:13 5-6-2020 13:23:45
1 a 5-6-2020 14:12:13 5-6-2020 14:47:10
2 b 3-6-2020 10:45:12 3-6-2020 12:35:34
2 b 3-6-2020 14:14:45 3-6-2020 18:04:20
2 b 10-6-2020 10:20:13 10-6-2020 13:23:45
2 b 10-6-2020 14:12:13 10-6-2020 16:47:10
Currently my requirement is that
Based upon Employee I have some login time and log out times for particular dates
Initially I have from date and to date
In your case take from date as 1st day of every month (1-06-2020) and to date as last day of month (30-06-2020)
Initially based upon particular dates (login time and Logout time) calculate Hours
If hours is more than 5 hours then add 1 day like that I am going to do for each date
Like that I am going to do for n no of dates for each employee
My requirement to display on
Id Name PresenDays AbsentDays
1 a 1 1
2 b 2 0