Determine the relative rank, called the percent_rank, of Christmas sales.
The following query:
SELECT sales_amt, PERCENT_RANK() OVER (ORDER BY sales_amt) FROM xsales;
might return the following results. Note that the relative rank is returned in ascending order, the default when no sort order is specified and that the currency is not reported explicitly.