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
How to fetch alternate records from a table?
what are sequences
what tools available for managing mysql server? : Sql dba
What is materialized view. What are different methods of refresh?
what are the features and advantages of object-oriented programming? : Sql dba
What is cursor status?
How can you load microsoft excel data into oracle? : aql loader
explain normalization concept? : Sql dba
What are the features of pl sql?
Is foreign key mandatory?
How does postgresql compare to mysql?
What is difference between inner join and self join?
Which version of sql do I have?
Explain the purpose of %type and %rowtype data types with the example?
What is cross join sql?