Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 09 Jan 2008 @ 16:31:48 GMT


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


Subj:   Re: Most efficient way to make Date field into char(4) YYMM
 
From:   Anomy Anom

<-- Anonymously Posted: Wed, 9 Jan 2008 10:30 -->

Syntax:

     select cast(cast(current_date as format 'yymm') as char(4))


     
  <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: 23 Jun 2019