-
how to write a query for 1st, 2nd, 3rd max salary
employee table having columns employeeid, salary
i want to write a query to get 1st, 2nd and 3rd max salary ?
-
select top 3 employeeid, salary
from tableName
order by salary desc
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|