![]()  |  
 
 
 | 
Archives of the TeradataForumMessage Posted: Fri, 09 Jan 2009 @ 18:40:28 GMT
 
 I've encountered this before. The way I resolved it was by shifting the weeks back when the first day of the year was not in Week 1 of the year. Regardless you will have to put some case logic around it. I'm going to assume you are enterprising enough to put the SQL together. :-) 
  | ||||||||||||||||||||||||||||||||||||||||||||||||
|   | ||||||||||||||||||||||||||||||||||||||||||||||||
 
  | ||||||||||||||||||||||||||||||||||||||||||||||||
|  
 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||