Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-422

Support PERCENTILE_CONT aggregate function

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Resolution: Fixed
    • None
    • None
    • None
    • 291

    Description

      Support an aggregate function that generates an interpolated value that, if added to the group, would correspond to the percentile given

      SELECT PERCENTILE_CONT(<percentile>) WITHIN GROUP (ORDER BY <expression> ASC)
      FROM t

      The PERCENTILE_CONT function would return the same type as <expression>. See [here](http://my.safaribooksonline.com/book/databases/sql/9780596155322/ansi-sql-aggregate-functions/id3491773_X2ludGVybmFsX0h0bWxWaWV3P3htbGlkPTk3ODA1OTYxNTUzMjIlMkZpZDM0ODkwMjAmcXVlcnk9) for some additional documentation.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            anoopsamjohn Anoop Sam John
            jamestaylor James R. Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment