I have a log table which has log of employee details. Lastworkingdate is the last day the employee clocked out and currentDatelocation is the getdate() at employee location.