Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 17 Dec 2009 @ 21:58:58 GMT


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


Subj:   Re: Multiload timestamp
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, December 17, 2009 16:57 -->

The problem is that Teradata time formats all require two-digit hour, e.g. 02:51 not 2:51. You can work around that with a CASE statement that uses SUBSTRING, etc. to concatenate the "missing" leading zeros, and put a CAST around that with appropriate format.

Same issue with month, day of month - must be two digits not one.



     
  <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