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
How to use boolean type in select statement?
What is sqlca in powerbuilder?
How do I create an index in word?
how to write date and time literals? : Sql dba
explain the difference between myisam static and myisam dynamic. : Sql dba
Can you rollback after commit?
What are the two parts of design view?
How to create a menu in sqlplus or pl/sql?
What are the types of queries in sql?
How can you save or place your msg in a table?
Explian rowid, rownum? What are the psoducolumns we have?
Explain isolation levels. : Transact sql
What are pl/sql packages?
How do I order by ascending in sql?
how to include numeric values in sql statements? : Sql dba