Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 06 Sep 2011 @ 22:54:23 GMT


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


Subj:   Hours Subtraction
 
From:   Anomy Anom

<-- Anonymously Posted: Tuesday, September 06, 2011 18:32 -->

Hi,

I have attribute with TRANSTime Decimal(6). However the value in that are six hour more than the time, suppose my time is 19:30:42 then it stored as 253042. Besides to the TRANSTIME I have a valid date now I want to convert it to equivalent Timestamp. with -6 hours. I am finding difficult to convert as the input DataType is Decimal(6).

The below is not working

     CAST(TRANSDATE AS DATE) || ' ' || CAST(TRANSTIME AS TIME)-INTERVAL '06' HOUR

Kindly help me.

Regards



     
  <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