Home Page for the TeradataForum

Archives of the TeradataForum

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

  <Prev Next>   <<First <Prev

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

  <Prev Next>   <<First <Prev
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 23 Jun 2019