Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 06 Jul 2006 @ 12:55:31 GMT


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


Subj:   Re: UDF function for calculating a PERCENTILE value
 
From:   Geoffrey Rommel

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


I may not understand the question, but check out the Functions and Operators manual under Ordered Analytical Functions / QUANTILE. It suggests this expression:

     (RANK() OVER (ORDER BY sort-columns) - 1) * 100 / COUNT(*) OVER()


     
  <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