how to find the second highest salary from emp table?
Answer Posted / radha sri seshu
second method is
select sal from emp e1 where 2=(select count(distinct(sal))
from emp e2 where e1.sal<=e2.sal);
| Is This Answer Correct ? | 35 Yes | 22 No |
Post New Answer View All Answers
how do you know if your mysql server is alive? : Sql dba
What are the different types of tables in sql?
what is acid property in database? : Sql dba
Cite the differences between execution of triggers and stored procedures?
difference between anonymous blocks and sub-programs.
What is the use of %rowtype?
What is AUTH_ID and AUTH_USER in pl/sql ?
what happens if null values are involved in expressions? : Sql dba
What can you do with pl sql?
What is sql used for?
Is join same as left join?
Can we create table inside stored procedure?
Can sql function call stored procedure?
what is the difference between truncate and delete statement? : Transact sql
What is the reports view in oracle sql developer?