Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

percentile_disc postgresql

Diego Goncalves answered on November 14, 2022 Popularity 6/10 Helpfulness 2/10

Contents


More Related Answers

  • running percentage of total postgres
  • distribution in postgres
  • percentile_disc sql

  • percentile_disc postgresql

    0

    Percentile disc postgresql

    To get the median, use a percentile function. The syntax for the percentile functions is different than for other functions you've seen because the data must be ordered to do the computation. It's called ordered set aggregate syntax. The only argument to the function is a number between 0 and 1 corresponding to the percentile you want. You then type "within group", and then, inside parentheses, order by and the name of the column you want to compute the percentile for. PERCENTILE_DISC, or discrete, always returns a value that exists in the column.   

    Popularity 6/10 Helpfulness 2/10 Language sql
    Source: Grepper
    Tags: postgresql sql
    Link to this answer
    Share Copy Link
    Contributed on Apr 18 2023
    Diego Goncalves
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    4
    Popularity 9/10 Helpfulness 10/10 Language sql
    Source: popsql.com
    Link to this answer
    Share Copy Link
    Contributed on Nov 14 2022
    Innocent Iguana
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.