W
wifor
Greetings all,
Thanks, ahead of time for any and all assistance or thought given to this
issue. I am at a call center and my question is how do I break down
statistics into 15 minutes increments? The time is initially gathered in
'Unix time'. I convert and adjust it to military time but am having a hard
time dividing it into every 15 minute increments. example: 0800 - 0815,
0816 - 0830, 0831 - 0845, 0846- 0859
Script:
SELECT
dbo_CDRMAIN.LocalDay,
(dbo_CDRMAIN.StartTime)-(dbo_cdrmain.GMTOffset) AS Adj_Unix_Time,
Format(([Adj_Unix_Time]/86400),"hh:nn:ss") AS Real_Time,
FROM
dbo_CDRMAIN
WHERE
(((dbo_CDRMAIN.LocalDay) Between 20080710 And 20080716) AND ((dbo_CDRMAIN.
TargetWGNum) In (5000,5001,5002,5600,5601,5602)))
ORDER BY dbo_CDRMAIN.LocalDay, dbo_CDRMAIN.StartTime;
Results:
LocalDay Adj_Unix_Time Real_Time
20080716 1216217982 14:19:42
20080716 1216218273 14:24:33
20080716 1216218375 14:26:15
20080716 1216218591 14:29:51
20080716 1216218596 14:29:56
20080716 1216218605 14:30:05
20080716 1216218623 14:30:23
20080716 1216218686 14:31:26
20080716 1216218693 14:31:33
20080716 1216218718 14:31:58
20080716 1216218725 14:32:05
20080716 1216218754 14:32:34
20080716 1216218766 14:32:46
Thanks, Wifor
Thanks, ahead of time for any and all assistance or thought given to this
issue. I am at a call center and my question is how do I break down
statistics into 15 minutes increments? The time is initially gathered in
'Unix time'. I convert and adjust it to military time but am having a hard
time dividing it into every 15 minute increments. example: 0800 - 0815,
0816 - 0830, 0831 - 0845, 0846- 0859
Script:
SELECT
dbo_CDRMAIN.LocalDay,
(dbo_CDRMAIN.StartTime)-(dbo_cdrmain.GMTOffset) AS Adj_Unix_Time,
Format(([Adj_Unix_Time]/86400),"hh:nn:ss") AS Real_Time,
FROM
dbo_CDRMAIN
WHERE
(((dbo_CDRMAIN.LocalDay) Between 20080710 And 20080716) AND ((dbo_CDRMAIN.
TargetWGNum) In (5000,5001,5002,5600,5601,5602)))
ORDER BY dbo_CDRMAIN.LocalDay, dbo_CDRMAIN.StartTime;
Results:
LocalDay Adj_Unix_Time Real_Time
20080716 1216217982 14:19:42
20080716 1216218273 14:24:33
20080716 1216218375 14:26:15
20080716 1216218591 14:29:51
20080716 1216218596 14:29:56
20080716 1216218605 14:30:05
20080716 1216218623 14:30:23
20080716 1216218686 14:31:26
20080716 1216218693 14:31:33
20080716 1216218718 14:31:58
20080716 1216218725 14:32:05
20080716 1216218754 14:32:34
20080716 1216218766 14:32:46
Thanks, Wifor