Assigns the same rank to equal values, with gaps in ranking.
Syntax
RANK() OVER (w)Example
Enter values below to update the example in real time.
employee_id→total_sales→sales_rank→sales_summary→SELECT employee_id, total_sales,
RANK() OVER (ORDER BY total_sales DESC) AS sales_rank
FROM sales_summary;