Question

I am trying to use Datediff to find out the duration between columnA and columnB.

SELECT datediff (minute, stime, etime)
from Exceptions2
where stime = [exceptions2].starttime
and etime = [exceptions2].endtime

This produces errors. Can anyone please help me with what I'm doing wrong?

Was it helpful?

Solution

how about trying this, not sure why you have stime = [exceptions2].starttime and etime = [exceptions2].endtime

SELECT datediff(minute, starttime, endtime) from Exceptions2
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top