Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 14 Apr 2011 @ 11:41:51 GMT


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


Subj:   Column match in WHERE clause
 
From:   JAMES PARK

Dear users,

Thank you for your continuous support.

I'd like to match c.starttime column and a.LogDate + a.LogonTime columns. How should I modify below SQL?

     SEL
     .
     .

     FROM  dbc.AccessLog a,
       dbc.LogonOff b, dbc.QryLog c
        WHERE
       .
       .
          and cast(c.starttime as date) = a.LogDate
          and cast(c.starttime as time)  = a.LogonTime
       .
       .

     ORDER BY  a.LogonDate DESC, b.UserName;

Thank you in advance.



     
  <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