Connecting Tech Pros Worldwide Forums | Help | Site Map

Cast in teradata sql

Newbie
 
Join Date: Aug 2009
Posts: 12
#1: Sep 1 '09
Hello,

Any suggestion in the way I used CAST in TERADATA SQL:

AND CAST (EXCEPTION_EVENT_TS AS TIMESTAMP(0) FORMAT 'MM/DD/YYYY HH:MI:SS') = EXCEPTION_EVENT_TS
AND EXCEPTION_EVENT_TS BETWEEN '06/05/2009 00:00:00' AND '06/06/2009 00:00:00'


My error is Invalid Timestamp.

Thanks in Advance.

I was able to resolve my error..hehehe Thanks!

RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,393
#2: Sep 1 '09

re: Cast in teradata sql


if you resolved it, what was it? Thats pretty selfish posting to a forum with a question but then not posting what the fix was.
Newbie
 
Join Date: Aug 2009
Posts: 12
#3: Oct 9 '09

re: Cast in teradata sql


1. Cast ( exception_event_ts date ) = date -1
2. Exception_event_ts between timestamp '06/05/2009 00:00:00' and timestamp '06/06/2009 00:00:00'
Reply


Similar Misc bytes