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

Answer Posted / ksam

select distinct(salary) from employee order by salary desc
limit n-1,1

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a table have multiple primary keys?

491


What is the default password for mysql?

465


What are the functions of mysql?

465


What is definer in mysql trigger?

498


What is session variable in mysql?

502






How to find the unique values if the value in the column is repeated?

558


How do I remove a user from mysql?

561


What is mysql data directory?

530


Why use mysql procedures?

502


explain GROUPBY & HAVING clause with examples.

1834


How to get data from mysql in php?

437


What is the insert?

493


How can we get the number of rows affected by query?

554


How do I change global variables in mysql?

480


What is InnoDB?

566