how to find the second highest salary from emp table?
Answer Posted / lakshmi
select * from (select *,rowcount()over (orderby emp desc)as
rank from emp)b where rank=2
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is the difference between subquery and correlated query?
what are aggregate and scalar functions? : Sql dba
what is 'mysqladmin' in mysql? : Sql dba
What are the advantages of sql?
what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba
What is auto increment feature in sql?
what is sub-query? : Transact sql
Can primary key be changed?
How to add new employee details in an employee_details table with the following details
Are there any features that are decommissioned in 11g that are not present in 11g?
Why is %isopen always false for an implicit cursor?
How many types of index are there?
how to run 'mysql' commands from a batch file? : Sql dba
Why plvtab is considered as the easiest way to access the pl/sql table?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba