90

Percentile Ranking

Hardwindow functionPERCENT_RANK

Problem Description

Write a SQL query to calculate percentile rank for each employee's salary.

Expected Columns

  • name
  • salary
  • percentile

Example Output

| name | salary | percentile | |------|--------|------------| | Karthik Sundaram | 95000 | 100.0 | | Ananya Singh | 90000 | 92.86 | | ... | ... | ... |

Hints

Unlocks after 2 more attempts
Submit your solution to unlock hints
//#90 Percentile Ranking
Hard

Loading schema...

Loading editor...

No results yet

Run a query to see results