Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





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





     
  <Prev Next>  
<<First
<Prev
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"

Thanks,





     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 23 Feb 2008