find 2nd highest salary of person using cursor concept?
Answer Posted / amruta dash
select max(salary) from tbl where salary not in (select max
(salary) from tbl);
| Is This Answer Correct ? | 11 Yes | 6 No |
Post New Answer View All Answers
How to rename an existing table with the "sp_rename" stored procedure in ms sql server?
How to rebuild indexes with alter index ... Rebuild?
What is normalization? Explain different forms of normalization?
List the different types of joins?
What is the difference between online clustering and Offline clustering?
explain declarative management framework (dmf) in sql server 2008?
What are the differences between triggers and stored procedures?
What is raid? : SQL Server Architecture
What is nolock hint in sql server 2008
What is an example of a foreign key?
Is it true that rules do not apply to data already existing in a database at the time the rule is created?
How can we delete Duplicate row in table?
What is data file in computer?
How use inner join in sql server?
which table keeps the locking information? : Sql server administration