Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 14 Apr 2011 @ 15:54:36 GMT


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


Subj:   Re: Column match in WHERE clause
 
From:   Dieter Noeth

JAMES PARK wrote:

  I'd like to match c.starttime column and a.LogDate + a.LogonTime columns.  


The "Time" columns in some old dbc tables are actually FLOATs with a FORMAT to make them look like a TIME (neither TIME nor TIMESTAMP existed in early TD releases).

     DATE + FLOAT -> TIMESTAMP:
     cast(LogDate as timestamp(2))
     + cast(trim(LogTime) as interval hour to second)

Dieter



     
  <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