Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Calculate range of values - eliminate outlyers

Author  Topic 

Rekonn
Starting Member

7 Posts

Posted - 2007-04-12 : 16:37:03
When looking at a particular column, I'd like to find out what range of values 90% of the records fall into. Let's say I have a table of invoices, with a column of invoice_amount. That column has a min of $.01 and max of $20k , but 90% of the values are between $30 and $1000. How do I find that range?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-04-12 : 16:42:48
With no more information to work with, I would suspect a standard deviation is handy.
Please post sample data and your expected output.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -