how to find the second highest salary from emp table?
Answer Posted / chirag shah
select DISTINCT(salary) from emp order by salary desc limit 1,1
this limit gives you 2nd record
if you want 3rd value then write limit 3,1
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Does google use sql?
What are inner outer left and right joins in sql?
Explain what is rdbms?
What is cartesian join in sql?
what is a join? : Sql dba
What is assignment operator in pl sql?
Are subqueries better than joins?
What is trigger in sql?
What is a record in pl/sql?
What is rollback?
What can I use instead of union in sql?
what are the different type of normalization? : Sql dba
What are functions in sql?
How do you change a value in sql?
What is sql comments?