I have table like this:
name number total_time avg_time
tom 10 00:02:28 ?
kevin 6 09:22:25 ?
total_time is type of interval, I can easily change to string.
now, I want to get the avg_time like this
avg_time = total_time / number;
I wander how to get the result ? I try to calculate day, hour, min, sec, but it’s too difficult , anyone who can give me some advice ? thanks a lot
Hopefully this example (based on yours) is helpful:
Can you be more specific about what part of this isn’t working for you?