how to find the second highest salary from emp table?
Answer Posted / jyotiprokash
Select * from emp e1 where 1=(select count(distinct sal) from emp e2 where e1.salary<e2.salary)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the use of stored procedures?
which tcp/ip port does sql server run on? : Sql dba
What is anonymous block in sql?
How to select unique records from a table?
What do we need to check in database testing?
what are integrity rules?
Can one improve the performance of sql*loader? : aql loader
What is auto increment feature in sql?
What is the use of <> sql?
how to drop an existing table in mysql? : Sql dba
What does stand for in sql?
How is pl sql different from sql?
What is a system versioned table?
How to sort the rows in sql.
What is dml statement?