Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 06 Mar 2009 @ 17:53:29 GMT


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


Subj:   Re: Which part of the year
 
From:   Anomy Anom

<-- Anonymously Posted: Fri, 6 Mar 2009 11:08 -->

     sel cast((b.day_of_year * 1.0000)
            /  (a.day_of_year * 1.0000) * 100.00 as decimal (5,2))

     from (sel max(day_of_year) day_of_year from sys_calendar.calendar
             where year_of_calendar = extract(year from current_date)) a

        , (sel day_of_year from sys_calendar.calendar
             where calendar_date = current_date) b


     
  <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