Average speed
Posted in 1999
Topics: General Discussion
Hi.. I posted message here earlier on calculating average speed when I have distance and the time it took to go that distance. Is it impossible to calculate the average speed? I find it hard to believe. My small amount of intelligence isn't capable of finding out how to do that, but so many smart people and still no way to perform that simple task? best regards, Arnar
Hi Arnar,
here is a possible solution for your problem. I'm curious if
there is a one-select-solution for this, didn't find that yet.
Bye, Chris
select to_char (extend (datetime(00:00:00.00) hour to fraction(2)
+ your_speed
) , "%R") as speed
from your_table
into temp temp_speed with no log;
select speed[1,2] + speed[4,5] / 60
from temp_speed;
drop table temp_speed;