find 2nd highest salary of person using cursor concept?
Answer Posted / manju
DECLARE authors_salary CURSOR
select top2(salary) from tb_employee order by desc salary
open author_salary
FETCH NEXT FROM authors_salary into @topsalary
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How to change the name of a database user?
what is spatial nonclustered index
How do you open a cluster administrator?
How to download and install sql server 2005 books online?
Once setting replication, is it potential to own a publisher as sixty four bit sql server and distributor or subscribers as a thirty two bit sql server?
What is the datatype of rowid?
What is SQL Azure Data sync?
Explain transaction server consistency?
What is bit data type? What's the information that can be stored inside a bit column?
Mention the differences between sql server and mysql.
Is a primary key unique?
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
What is openxml in sql server?
What is change data capture (cdc) in sql server 2008?
What are dml triggers and types of dml triggers?