sql(?): counting between twin datetime values
what best proceed count between twin datetime values fetched mysql i need count wholly between hours 08:00:00-16:00:00.
for instance i have values 2008-10-13 18:00:00 2008-10-14 10:00:00 inadequacy should 02:00:00.
can i sql best proceed it? i'm building website controlling php.
thank your answers.
edit: accurate thing i'm perplexing count "ticket" specific state during operative hours. integrate weeks.
edit2: i have problems counting tangible difference, nonetheless substracting off-time, 00:00:00-08:00:00 16:00:00-00:00:00 per day.
-samuli
Comments
Post a Comment