find 2nd highest salary of person using cursor concept?
Answer Posted / pawan
select * from emp a where 2=(select count(distinct(sal)) from emp b where a.sal<=b.sal);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to use the inserted and deleted pseudo tables?
Where can you add custom error messages to sql server?
What do you need to connect php to sql server?
What can be used instead of trigger?
What are the authentication modes in sql server? How can it be changed?
Explain partitioned view?
What is inner join? Explain with an example?
What is the difference between SQL notification and SQL invalidation?
Difference between drill down and drill through report.
How to create “dependant” parameter “make, model, year”
What is deploy, process and build? : sql server analysis services, ssas
What are the different types of join?
What are the advantages of the mirroring?
Can the query output be sorted by multiple columns in ms sql server?
What are the disadvantages of primary key and foreign key in SQL?