Archives of the TeradataForum
Message Posted: Thu, 13 Mar 2003 @ 17:14:53 GMT
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
|