I\'m stuck. I\'ve looked for an answer, but can\'t seem to find subtracting time in the same table from two different rows of the same table that fits. I\'m having a difficu
try something like that:
select *, DATEDIFF(minute, ( select max(b.TimeOut) from TIMESHEET as b where a.EmpID=b.EmpID and b.ROW