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

percentile_disc sql

Diego Goncalves answered on April 18, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • sql percentage
  • calculate percentage in sql
  • format percentage in sql
  • sql server function to calculate a percentage
  • percentile_disc postgresql
  • sql percentile_cont

  • percentile_disc sql

    0

    To get the median in postgreSQL, use a percentile function. 

    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.   

    Popularity 3/10 Helpfulness 1/10 Language sql
    Source: Grepper
    Tags: sql
    Link to this answer
    Share Copy Link
    Contributed on Apr 18 2023
    Diego Goncalves
    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.