Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 05 Nov 2012 @ 15:29:59 GMT


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


Subj:   Re: Subtraction between dates
 
From:   Geoffrey Rommel

The preferred syntax for this operation is:

     select date '2012-02-20' - date '2012-02-10';

The word 'date' followed by a character string in 'yyyy-mm-dd' format is standard ANSI syntax for a date.



     
  <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