Basic Syntax RANK() OVER (PARTITION BY column_name ORDER BY column_name ASC/DESC)– PARTITION BY: Groups data before ranking– ORDER BY: Specifies ranking order
RANK Function Syntax
Imagine ranking students based on their scores. RANK assigns the same rank to students with equal scores.