how to find the second highest salary from emp table?
Answer Posted / sunil
select top 1 * from emp where sal not in (select max(sal)
from emp) order by sal desc
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How can we debug in PL/SQL?
The select into statement is most often used to create backup copies of tables or for archiving records?
What is sql query limit?
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
What is sql engine in oracle?
Can we alter stored procedure?
What is normalization in sql?
Which table is left in join?
Is sql a microsoft product?
what is the use of double ampersand (&&) in sql queries?
What is over () in sql?
How do you use a while loop in pl sql?
What is trigger point?
What is audit logout in sql profiler?
How to look at the current sql*plus system settings?