Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 22 Aug 2005 @ 15:06:37 GMT


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


Subj:   Re: DAYOFWEEK Function and BTEQ
 
From:   Dirk

Hi all,

maybe this is an alternative option for you:

     sel (date - date'0001-01-01') mod 7 + 1;

returns:

     1 = Monday
     2 = Tuesday
     3 = Wednesday
       and so on...

Regards,

Dirk



     
  <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