I have a table which has 4 columns. Date login, date logout, time login, time logout.
How can I get the difference. I tried something like this;
SUM(TIMESTAMP(date_logout, time_logout) - TIMESTAMP(date_log, time_log))
However I’m getting a really really high number and I am unable to convert it to proper time. Any hints or clues? I didn’t design the table btw 😛
Thanks in advance!
if you want the diff in secounds:
If you want the diff in days:
If you want the diff as HH:mm:ss