Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 19 Jul 2005 @ 12:23:59 GMT


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


Subj:   Re: COALESCE or CASE ?
 
From:   Anomy Anom

<-- Anonymously Posted: Tuesday, July 19, 2005 08:13 -->

     COALESCE (C.COL1,P.COL1)

is internally converted to the equivalent (by definition) CASE statement

     CASE WHEN C.COL1 IS NOT NULL THEN C.COL1 ELSE P.COL1 END

so it really makes no difference.

You mention that you want to "get things going faster"; to advise you on that we'd need to see the DDL, JOIN, and EXPLAIN info..



     
  <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