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
What is a string data type in sql?
How do I create an index in word?
What does trigger mean in slang?
What is auto increment feature in sql?
How does cross join work?
Is foreign key mandatory?
What is microsoft t sql?
What are different sql data types?
How does postgresql compare to "nosql"?
List and explain the different types of join clauses supported in ansi-standard sql?
What is a primary key? Explain
What is latest version of sql?
What is the difference between nested table and varray?
how many groups of data types? : Sql dba
What are the different schemas objects that can be created using pl/sql?