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


Please Help Members By Posting Answers For Below Questions

How can I connect mysql database?

476


what is the difference between the nvl function, ifnull function, and the isnull function? : Mysql dba

527


What is the date format in mysql?

450


What is mysql common?

486


What is the latest version of mysql?

493






What is the difference between myisam dynamic and myisam static in mysql?

491


How to enter microseconds in sql statements?

520


In which language mysql has been written?

870


Where the database is stored in mysql?

491


SQL is not case sensitive. DELETE is the same as delete. State Whether True or False?

573


How to represent ENUMs and SETs internally?

637


What is the return type of mysqli_query?

464


What is the command line end user interface - mysql?

525


Can we store files in mysql?

479


Can you tell the difference between ereg_replace() and eregi_replace()?

526