Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 12 Sep 2012 @ 16:06:40 GMT


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


Subj:   Re: 3706: Syntax error
 
From:   Frydryszak, Marek

Such kind of literals may be used only through ODBC.

But query seems to be correct - similar one works for me and retunrs 'Yes' :

     SELECT
      case
      when date '2012-05-10'  IN  ( {ts '2012-05-10 15:30:00'},{ts '2012-05-09 00:00:00'} )
     then 'Yes'
         else 'No'
     end dt_comp_ts

I believe you had ',' in the next line not copied to email....



     
  <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