I have a relationship instructor (ID, name, department name, salary).
The question in our assignment asks us: to use the rank function in SQL to write a query on the identifier and name of those instructors from the top 10 highest paid.
I can rank instructors with select id, name, rank() over(order by(salary) desc) as sal
from instructor order by sal
What is my next step in grabbing the top 10 instructors? Thank.
source
share