Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 03 Sep 2003 @ 09:55:07 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Average Timestamps
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, September 03, 2003 05:51 -->

Hello All,

Does anybody can tell how to calculate average of timestamp values in Teradata?

For Example,

Create table avgts(i int, ts timestamp(0));ins avgts(1, '2003-09-01 12:00:00');
ins avgts(1, '2003-09-03 12:00:00');
select i, avg(ts) from avgts group by 1;

gives me the error:

"5407: Invalid operation on ANSI Datetime or Interval value"


  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 28 Jun 2020