how to find the second highest salary from emp table?
Answer Posted / sankar sasmal
select distinct sal from emp e where 2=(select count(distinct sal)from emp s where e.sal<=s.sal)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain foreign key in sql?
What are analytic functions in sql?
how to fetch common records from two tables? : Sql dba
what is primary key? : Sql dba
Explain what is table in a database?
What is trigger and types?
what is column? : Sql dba
What is sqlerrm?
What are the types of subqueries?
What is lexical units in pl sql?
What is pl/sql language case sensitive?
Why truncate is used in sql?
what is bcp? When does it used? : Sql dba
What does partition by mean in sql?
How to take user input in pl sql?