Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 07 Oct 2004 @ 08:24:20 GMT


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


Subj:   Debug a SQL and null
 
From:   Reddy, Gayathri

Need help in debugging a SQL . I just added that statement . I needed to substitute it with sysdate if it is null. Any help is appreciated

     select
     a.access_check_ca_amount,
     a.return_chk_count,
     coalesce(b.cr_risk_clasfn_chng_dt, 2004-08-17) as
     cr_risk_clasfn_chng_dt,      <-----
     coalesce(c.solicitation_id,-9999999) as solicitation_id,
     coalesce(c.test_cell_id,-999)as test_cell_id,
     coalesce(c.source,28) as source
     FROM    view a INNER JOIN view b
     ON      a.account_number = b.account_number
     LEFT OUTER JOIN view  c
     ON a.account_number = c.account_number

Thanks,

Gayatri Reddy



     
  <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: 27 Dec 2016