Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 07 Sep 2011 @ 07:47:04 GMT

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

Subj:   Re: Hours Subtraction
From:   avinash.rai1


For subtracting hour from time you can use as-

     Select cast(TRANSTime as time(0)),cast((TRANSTime - cast('06:00:00' as
     decimal(6))) as time(0))
     From tablename;

Thanks & Regards,

Avinash Rai

  <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