how to find the second highest salary from emp table?
Answer Posted / r.arjunarao
select a.sal from emp a where 2=(select count(distinct(b.sal)) from emp b where b.sal>=a.sal)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I start pl sql?
How many types of triggers are there in pl sql?
What has stored procedures in sql?
Explain the components of sql?
What is the difference between explicit and implicit cursors in oracle?
What is data control language (dcl)?
how many tables will create when we create table, what are they? : Sql dba
How to fix oracle error ora-00942: table or view does not exist
Can 2 queries be executed simultaneously in a distributed database system?
Which one is better subquery or joins?
What is sql dialect?
How do you remove duplicates without using distinct in sql?
What is sql profiler in oracle?
What are the topics in pl sql?
How do I view a view in sql?