Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 22 Apr 2008 @ 12:55:09 GMT


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


Subj:   Re: Small function in teradata
 
From:   Sapra, Kapil Dev

Hi,

I think you need to use MOD function in TERADATA like below..

     SQL-1
     SELECT 1 FROM TBL
     WHERE
     EXTRACT(YEAR FROM CURRENT_DATE) MOD 4 = 0;

     SQL-2
     SELECT EXTRACT(YEAR FROM CURRENT_DATE) MOD 4;

Best Regards,

Kapil D Sapra



     
  <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