How to average time intervals?

后端 未结 6 1097
故里飘歌
故里飘歌 2020-12-09 17:03

In Oracle 10g I have a table that holds timestamps showing how long certain operations took. It has two timestamp fields: starttime and endtime. I want to find averages of t

6条回答
  •  醉酒成梦
    2020-12-09 17:38

    Well, this is a really quick and dirty method, but what about storing the seconds difference in a separate column (you'll need to use a trigger or manually update this if the record changes) and averaging over that column?

提交回复
热议问题