Wrong Result Using The PERCENTILE_DISC Function Whose Order By Clause Uses A VARCHAR2 Column

(Doc ID 2105208.1)

Last updated on FEBRUARY 17, 2016

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


when trying to use the PERCENTILE_DISC function in its aggregate form, but the result shows "?" if  we use a VARCHAR2 column for the order by clause inside the WITHIN GROUP clause.
Using a NUMBER column instead of a VARCHAR2 column for the order by clause provides the correct result.



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms