I have a database where each record contains IN and OUT. I would like to see how left for more than 20 minutes.
How can i check the OUT time in the first record with the IN time and then calculate the minutes?
Taking into considerations there are other days in the DB and i want to do it for each day seperate
How can i check the OUT time in the first record with the IN time and then calculate the minutes?
Taking into considerations there are other days in the DB and i want to do it for each day seperate
InTime | OutTime | Total minutes OUT ( i calculated this manually) |
2024-12-16 06:11:07 | 2024-12-16 11:30:57 | |
2024-12-16 11:49:30 | 2024-12-16 12:19:45 | 11:30:57 to 11:49:30 = 00:19:27 (hh:mm:ss) |
2024-12-16 12:33:58 | 2024-12-16 15:03:20 | 12:19:45 to 12:33:58 = 00:14:13 (hh:mm:ss) |