Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 04 Feb 2004 @ 13:53:23 GMT


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


Subj:   Re: How to find the week-ending-date for a given date?
 
From:   Scott Thompson

Pratibha,

heres one way to do it :

SEL  A.GIVEN_DATE,
     B.CALENDAR_DATE,
        .
        .
        .

FROM TABLE_1 A,  SYS_CALENDAR.CALENDAR B

WHERE B.DAY_OF_WEEK = 7
AND   B.CALENDAR_DATE BETWEEN A.GIVEN_DATE AND A.GIVEN_DATE + 6
AND [other criteria]


     
  <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