I'm trying to find the 80th percentile of a column in SQL Server Management Studio using the Percentile_DISC(0.8)
function but it wants me to partition by. Is there any way I can use this function to find the percentile of the whole column and not partitioning? I just want one single value.
Thanks in advance!
是的- Percentile_DISC(0.8) within group (order by ...) over ()
尝试Percentile_DISC(0.8) within group (order by ...) over ()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.