Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 06 Oct 2010 @ 14:19:11 GMT

  <Prev Next>  
Next> Last>>  

Subj:   JI, coalesce stmnts, and group by
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, October 6, 2010 10:11 -->

Thanks in advance for any insights.

I am building a JI with a goal to agg some amounts to the same level as some equivalent SQL. The SQL uses a coalesce to convert a NULL to a value of -1, then performs the grouping of subsequent amounts. Any thoughts on how to perform the coalesce and the grouping?

Is the coalesce equivalent impossible?

     XREF.mstr_prty_id ,
     COALESCE (MSTR_PRTY_CUR.glbl_ult_prnt_entrprs_prty_id, -1) glbl_ult_prnt_entrprs_prty_id
     , XREF.mstr_prty_type_cd


  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 28 Jun 2020