sql median value of column

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-04-06T17:27:40Z Indexed on 2010/04/06 17:33 UTC
Read the original article Hit count: 349

Filed under:
|
|

Is there a way in sql (or tsql) to select the median of a column of numbers? I know you can sort by the column and pick the middle value, but it would be nice if there was a built-in function

© Stack Overflow or respective owner

Related posts about sql

Related posts about median