Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Thu, 03 Oct 2002 @ 14:59:25 GMT





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




Subj:   Re: Weeknumbers
 
From:   Ken Hansen



René,

I have not seen a "week function" and guess this may be because the start day (Monday or Sunday or ..) and the start date would vary for many, depending on the purpose e.g. calendar, fiscal, employment etc.

Previously I have tried two solutions:

- create a table of dates and week numbers

- subtracted the first date e.g. 0101yyyy, from the selected date, divided the days by 7 and added 1

If you find a better solution, do share it.

Ken Hansen





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008