Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 13 Mar 2003 @ 17:14:53 GMT


     
  <Prev Next>  
<<First
<Prev
Next>
Last>>
 


Subj:   What am I doing wrong? -- FastExport
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, March 13, 2003 12:07 -->

The below statement which is part of a big SQL works just fine in BTEQ but fails in FEXP with an invalid ansi Datetime conversion error

Can some one please let me know what am I doing wrong here.....

         CAST((CAST(Createtime AS TIME) (FORMAT '999999')) AS CHAR(6))
**** 11:58:48 UTY8724 Select request submitted to the RDBMS.
**** 11:58:48 UTY8713 RDBMS failure, 5407: Invalid operation on an ANSI
Datetime or Interval value.

The column CreateTime is char(8) and in HH:MM:SS format, just to be sure that they all are valid time I am casting that to time and then back to char with a different format...

Thanks in advance



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