Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Thu, 27 Feb 2003 @ 20:49:22 GMT





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




Subj:   Re: Finding the last day of the month
 
From:   Schachtel, Wayne



It's a bit messy,

Select cast(cast((extract(year from date) as char(4)) || trim(cast((extract month from date) (format '99')) as char(2) )) || '01') As char(10)) as date format 'YYYYMMDD') - 1

Wayne Schachtel
Teradata, a division of NCR





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008