Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.oracle    |    Overblown overpriced overengineered SHIT    |    2,288 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 970 of 2,288    |
|    VC to Ariant    |
|    Re: need avg(timestamp1 - timestamp2), g    |
|    16 Jan 04 03:42:00    |
      XPost: comp.database.oracle       From: boston103@hotmail.com              Hello,              Assuming you have a table like this:              create table t1(x timestamp, y timestamp)              .. the query would be:              select avg (to_date(to_char(x, 'mm/dd/yyyy hh24:mi:ss'), 'mm/dd/yyyy       hh24:mi:ss') -        to_date(to_char(y, 'mm/dd/yyyy hh24:mi:ss'), 'mm/dd/yyyy       hh24:mi:ss')) * 24*60*60 avg_seconds       from t1                     You need to convert timestamp-> char->date.                     Rgds.              VC              "Ariant" |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca