find 2nd highest salary of person using cursor concept?

Answer Posted / krish

select max(sal) frem tbl where sal <(select max(sal) from tbl;

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What factors you will consider calculating the storage requirement for that view?

536


Tell me about the approaches which you used to counter the DI problems.

750


What is table value parameters (tvp)?

536


What is difference between index and primary key?

578


What does the update command do?

609






Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?

561


What samples and sample databases are provided by microsoft?

563


Name three of the features managed by the surface area configuration tool? : sql server security

502


How to download and install microsoft sql server management studio express?

559


What do you mean by sql server agent?

533


What is oltp (online transaction processing)?

580


What do you understand by replication in sql server?

567


How do I uninstall sql server 2014?

514


What is the difference between mysql and sql server?

467


What does this statement do @@rowcount?

543