Write a query to find second highest salary of an employee.
Answer Posted / om patel
select (distinct(a.sal) from emp e where rownum=&N(select
count(distinct(b.sal)) from emp b where a.sal<=b.sal)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is java sql driver?
What is the use of desc in sql?
What is procedure and function in sql?
How do sql triggers work?
What is compound trigger?
How do you change a value in sql?
What is normalization sql?
What are the types of views in sql?
What are predefined functions in sql?
What is a composite primary key?
How delete all data from all tables in sql?
What are the advantages of pl sql?
What is trigger in sql?
How to change the order of columns in Oracle SQL Plus ?
how can we know the number of days between two given dates using mysql? : Sql dba