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

Answer Posted / jithu

Another way is::

SELECT sal FROM sal a WHERE n = ( SELECT count(*) FROM sal
b WHERE b.sal < a.sal)

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a table index in mysql?

528


How much does mysql cost?

482


What happens if you no create privilege in a database?

561


What is dbms in mysql?

508


Is there a free mysql?

496






What is join in mysql? What are the different types of join?

512


How can we get total number of records by query in mysql?

495


What are procedures in mysql? Explain

531


Is mysql server free?

492


How does mysql encrypt passwords?

488


What are the steps required to view your mysql database?

614


suppose data is copie to oracle to sql by using DTS. Actully it taken 2 hours. suppose some day distribute the server in the middle of 2 hours. after how can i get the data ?

1673


What are the types of queries?

493


Can you tell what are various ways to create an index?

465


Can a table have multiple primary keys?

491