select
sec_to_time(avg(unix_timestamp(change_time) - unix_timestamp(create_time))) from
ticket
where
unix_timestamp(create_time) > unix_timestamp('2004-05-01
00:00:00')
and
unix_timestamp(create_time) < unix_timestamp('2004-05-31
00:00:00')
and
ticket_state_id = 2
The example shows the avarage answer time for may 2004
(the result is in: hh:mm:ss)
I am intersted in knowing if anybody is dealing with the same kind of
statistics and hearing if there is a better way to retrieve the same
information.
Elsewise I just want to share my endeavour with whoever is
interested.
Regards
Stig