Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 04 Feb 2004 @ 18:07:28 GMT


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


Subj:   Re: How to find the week-ending-date for a given date?
 
From:   Agarwal, Rachana

Pratibha,

Try using following query to find out date on week ending for a paricular date :-

eg, to find out week ending date for date 2nd feb 2004 use .....

select date '2004-02-04'  + (7- day_of_week ) from sys_calendar.calendar
where calendar_date = date '2004-02-04'

Regards,

Rachana



     
  <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