Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 19 Dec 2006 @ 23:20:37 GMT


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


Subj:   Re: Finding the last Friday of the year
 
From:   Chong, Michael

How about this:

     select *
        from sys_calendar.calendar
        where day_of_week = 6
        Qualify calendar_date = max(calendar_date)
           over (partition by year_of_calendar)
     ;

Michael Chong



     
  <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