Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 29 Nov 2006 @ 16:49:50 GMT


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


Subj:   Re: Week of the year
 
From:   Howard Bradley

There are probably loads of easier ways to do it (as no doubt Victor or Dieter will demonstrate) but...

     sel
     trim(extract(year from
     ('2006-01-09'(date,format'yyyy-mm-dd'))))||'-'||((((('2006-01-09'(date,f
     ormat'yyyy-mm-dd'))-('2006-01-01' (date,format'yyyy-mm-dd')))/7)+1)(format'99'))

simple eh :-)



     
  <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