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
What are commit, rollback, and savepoint?
The select into statement is most often used to create backup copies of tables or for archiving records?
What information is needed to connect sql*plus an oracle server?
what does myisamchk do? : Sql dba
What is the difference between the conventional and direct path loader? : aql loader
What is Collation Sensitivity ? What are the various type ?
how can we know the number of days between two given dates using mysql? : Sql dba
How to start the command-line sql*plus?
What are packages in pl sql and also explain its advantages?
What are the features of pl sql?
how to select unique records from a table? : Sql dba
Are left and right joins the same?
Explain the difference between triggers and constraints?
What is sql and db2?
What is sql comments?