Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Compute for the Median

$
0
0

Hi Experts,

i have this table:

Date Activity Duration
11/27/2013 A 1.00
11/27/2013 A 2.00
11/27/2013 A 3.50
11/27/2013 B 4.00
11/27/2013 B 5.00
11/27/2013 B 6.50
11/27/2013 B 3.00

I want to compute for and median and get the output like this:

Date Activity Activity Count Median
11/27/2013 A 3.0 2.00
11/27/2013 B 4.0 5.75


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>