how we can find nth max salary from an employe table by
using my sql?

Answer Posted / sandeep

select MAXIMUM(salary) from (select salary from employee
order by salary desc limit 'n')

n means number of rows

Is This Answer Correct ?    10 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a query to mysql in safe mode and to change the root password

517


What storage engines are used in MySQL?

514


What are the different types of triggers in mysql?

454


what is constraints? Also explain the different types of constraints?

518


What is the latest version of php and mysql?

677






How can you change the name of any existing table by using the sql statement?

508


Can varchar be primary key?

504


Can I copy mysql data directory?

488


How to get a list of columns in an existing table?

492


What are the steps involved in query processing?

478


What is schema in mysql?

493


What is different between sql and mysql?

504


Where is the mysql database stored?

477


Can we store files in mysql?

480


What is a crosstab query?

510