Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 17 Mar 2004 @ 11:15:09 GMT

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

Subj:   Re: Function in teradata to calculate the Product???
From:   Sanjaya Nagabhushan

This will give a product of 0 when there are an even number of -ve numbers in the column. So another case is needed to fix this...

case when (n_neg mod 2) = 0 then signum
     else -signum



  <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: 23 Jun 2019