Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 05 Jul 2006 @ 22:18:52 GMT


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


Subj:   UDF function for calculating a PERCENTILE value
 
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, July 05, 2006 17:39 -->

Hi Folks,

Is there a way to write a UDF function for calculating a PERCENTILE value for a given set of N measurements?.

I have used a workaround for now using PERCENT_RANK Function to calculate a percentile value which matches closely (<0.01% variance) with the value calculated in MS Excel (PERCENTILE function).

UDFs manuals mostly talk about Scalar or Aggregate functions, but I have not come across any material that has information on writing Ordered Analytical Functions. If you happen to know about it, please let me know.



     
  <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: 27 Dec 2016