how to get second highest salary in SQL(as/4000
Answer Posted / shasi
select sal from emp a where &n=(select count(sal) from emp
b where a.sal>=b.sal)
First u enter 1 means 1st highest sal.then enter2 2nd
highest sal
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
When to use inner join and left join?
What is nosql example?
How does left join work in sql?
what are the different index configurations a table can have? : Sql dba
What are its different types of dbms?
Explain correlated query work?
what are the differences between binary and varbinary? : Sql dba
Could you please provide oca (oracle 10g) dumps for my certification ?
Can you call pl/sql package functions from within a fast formula?
What is cte sql?
What is crud stand for?
What is the difference among union, minus and intersect?
What does t sql mean?
Define commit?
What is the use of function "module procedure" in pl/sql?