Function to Calculate Median in SQL Server

前端 未结 30 2829
孤独总比滥情好
孤独总比滥情好 2020-11-22 04:03

According to MSDN, Median is not available as an aggregate function in Transact-SQL. However, I would like to find out whether it is possible to create this functionality (u

30条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 04:24

    See other solutions for median calculation in SQL here: "Simple way to calculate median with MySQL" (the solutions are mostly vendor-independent).

提交回复
热议问题