how to find the second highest salary from emp table?
Answer Posted / arun
select distinct (a.salary) from employees a
where &N = (select count (distinct(b.salary))
from employees b where a.salary <= b.salary);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between function and trigger?
What is dynamic sql in pl sql?
What is set serveroutput on in pl sql?
What is the difference between sql and t sql?
What are different sql data types?
What is Difference Between Unique and Primary Key Constraints?
Explain how exception handling is done in advance pl/sql?
What is attribute indicator in pl sql?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
How many sectors are in a partition?
What is a .db file?
Is sqlite free?
Name the different types of indexes in sql and define them.
What is exit statement?
How many types of relationship are there?