how we can find nth max salary from an employe table by
using my sql?
Answer Posted / sumit
select salary from employee e1
where (n-1)=(select count(*) from employee where
salary>e1.salary)
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Which storage engine is best in mysql?
How do I view mysql logs?
What is definer in mysql?
What is myisam?
What is row?
Can we rename database in mysql?
How to Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Set new password. Exit MySQL and restart MySQL server.
What is mysql sleep process?
How to check if a record exists in a mysql database php?
How many columns can be used for creating Index?
How to Change a users password from MySQL prompt. Login as root. Set the password. Update privs.
How do I restore a mysql database dump file in linux?
How to use mysqldump to create a copy of the database?
What are the advantages of mysql in comparison to oracle?
Is mysql from oracle?