how come it works like this in the select
datediff("h", [apt finish time], [apt start time]) as difference
but not in the where.
I noticed I do see some negative numbers, with my code there isn't any negative numbers.
the first being the start and the second being the finish
with this...