B
BJ
Hi,
I have data like this
03/14/05 13:09:42.0 0 CON
03/14/05 13:10:19.0 1 CON
03/14/05 13:10:21.0 2 CON
03/16/05 00:57:42.0 3 CON
03/16/05 03:14:21.0 4 CON
03/16/05 03:14:21.5 5 CON
03/19/05 16:54:57.0 6 CON
03/19/05 16:59:42.0 7 CON
03/19/05 17:04:36.5 8 CON
03/19/05 17:06:42.0 9 CON
I have written a query to calculate the hourly total number of
events for a particular 'CON.
i.e this gives the hourly count of the events for a particular date and
CON..
And also I need to calculate Average for that hour, median value for
that hour.
Suppose say, if I do a group by and get records like
MyDate MyHour Expr1002 Count SiteName
6/15/2003 16 10 2 BOW
6/15/2003 17 1 0.2 BOW
6/16/2003 7 6 1.2 BOW
6/16/2003 8 2 0.4 BOW
6/16/2003 10 1 0.2 BOW
6/16/2003 11 2 0.4 BOW
6/16/2003 14 1 0.2 BOW
6/16/2003 17 17 3.4 BOW
6/18/2003 9 7 1.4 HUN
6/18/2003 10 13 2.6 HUN
6/18/2003 11 1 0.2 BOW
6/18/2003 12 2 0.4 BOW
I get the hourly values. But I dont know how to calculate median and
average values on the set of records.
Like I want the Average value and median value for say 6/16/2003, then
for 6/18/2003 .....
I am really in need. Please help.
Thanks
BJ
I have data like this
03/14/05 13:09:42.0 0 CON
03/14/05 13:10:19.0 1 CON
03/14/05 13:10:21.0 2 CON
03/16/05 00:57:42.0 3 CON
03/16/05 03:14:21.0 4 CON
03/16/05 03:14:21.5 5 CON
03/19/05 16:54:57.0 6 CON
03/19/05 16:59:42.0 7 CON
03/19/05 17:04:36.5 8 CON
03/19/05 17:06:42.0 9 CON
I have written a query to calculate the hourly total number of
events for a particular 'CON.
i.e this gives the hourly count of the events for a particular date and
CON..
And also I need to calculate Average for that hour, median value for
that hour.
Suppose say, if I do a group by and get records like
MyDate MyHour Expr1002 Count SiteName
6/15/2003 16 10 2 BOW
6/15/2003 17 1 0.2 BOW
6/16/2003 7 6 1.2 BOW
6/16/2003 8 2 0.4 BOW
6/16/2003 10 1 0.2 BOW
6/16/2003 11 2 0.4 BOW
6/16/2003 14 1 0.2 BOW
6/16/2003 17 17 3.4 BOW
6/18/2003 9 7 1.4 HUN
6/18/2003 10 13 2.6 HUN
6/18/2003 11 1 0.2 BOW
6/18/2003 12 2 0.4 BOW
I get the hourly values. But I dont know how to calculate median and
average values on the set of records.
Like I want the Average value and median value for say 6/16/2003, then
for 6/18/2003 .....
I am really in need. Please help.
Thanks
BJ