Possible Duplicate:
Function to Calculate Median in Sql Server
Goal:
Display the value of the median based on this code below. 
Problem:
I don't how to do display it in SQL server
The table can retrieve new value in the future and all rows can be odd or even.
declare @T table 
( 
  Name varchar(50), 
  Sales int 
) 
insert into @T values 
('John',     '50'), 
('Jennifer', '15'), 
('Stella',   '20'), 
('Sophia',   '40'), 
('Greg',     '10'), 
('Jeff',     '20')
 
     
     
    