M
Maresdd
I have created a query in my database using several tables. My table has a
list of shifts that an employee has done in a day. For each shift completed
there is a start time and an end time. I need to find the first start time
and the end time and work out the difference between the two in hours. So far
I have:
(SELECT (Max([EndTime])-Min([StartTime])*24)
FROM table as tb
WHERE table.emp = tb.emp AND table.servdate = tb.servdate)
I get an ERROR in the value.
Can somebody please tell me where I'm going wrong.
list of shifts that an employee has done in a day. For each shift completed
there is a start time and an end time. I need to find the first start time
and the end time and work out the difference between the two in hours. So far
I have:
(SELECT (Max([EndTime])-Min([StartTime])*24)
FROM table as tb
WHERE table.emp = tb.emp AND table.servdate = tb.servdate)
I get an ERROR in the value.
Can somebody please tell me where I'm going wrong.