Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sun, 10 Oct 2004 @ 11:04:43 GMT


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


Subj:   Re: Debug a SQL and null
 
From:   R.Lakshman

Hi Gayathri,

Just add date in the select statemen

     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,
     current_date as Todays_Date
     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

Hope this work.


Thanks & Regards,

Lakshman



     
  <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