Home Page for the TeradataForum
 

Archives of the TeradataForum

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


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


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

All creative solutions. How about simply:

     BTEQ -- Enter your DBC/SQL request or BTEQ command:
     select '31-dec-' || trim(extract(year from current_date)-1) "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: 15 Jun 2023