Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 23 Sep 2004 @ 10:29:50 GMT


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


Subj:   Re: Year beginning function in teradata
 
From:   Dieter Noeth

Azhar S Mohammad wrote:

  I want to know the year begining function in teradata .  



There's no build-in function, but the following calculation works even for a date before >1900-01-01'

     (EXTRACT(YEAR FROM col) * 10000 + 0101) - 19000000 (DATE)

Dieter



     
  <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