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 Median Value

Author  Topic 

hnomani
Starting Member

35 Posts

Posted - 2004-03-26 : 16:55:10
In the pubs.dbo.sales table, I am trying to get the Median (Middle) value for qty column grouped by stor_id column. Is there any SQL Server 2000 function that I can use to get the Median? If not, what will be the best way to get the Median?

Thanks
Haseeb

ehorn
Master Smack Fu Yak Hacker

1632 Posts

Posted - 2004-03-26 : 17:11:16
Here is a link which may stimulate some thought:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=22242
Go to Top of Page
   

- Advertisement -