Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 20 Sep 2002 @ 06:34:43 GMT


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


Subj:   Re: Summing 3 tables
 
From:   Dieter N�th

try

(amt_month1 + coalesce(amt_month2,0) + coalesce(amt_month3,0))
 *(case
     when amt_month3 is not null then 4
     when amt_month2 is not null then 6
     else 12
   end)

Dieter



     
  <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