Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 01 Mar 2008 @ 11:00:42 GMT


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


Subj:   Re: Char to date in teradata
 
From:   Stegelmann, Rolf

On my previous post I should have converted it back to a date I guess:

     BTEQ -- Enter your DBC/SQL request or BTEQ command:
     select cast('31-dec-' || trim(extract(year from current_date)-1) as date
     format 'dd-mmm-yyyy') "end date";

     *** Query completed. One row found. One column returned.
       *** Total elapsed time was 1 second.

         end date
     -----------
     31-Dec-2007


     
  <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: 27 Dec 2016