Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Tell me extended events in sql server 2008?

963


Explain view in sql server?

1028


List out the different types of locks available in sql server?

945


what are user defined datatypes? : Sql server database administration

936


how to take backup bcp out for a column in table in sql server?

2065


Explain what is the purpose of sql profiler in sql server?

1033


What is mssql?

956


Can a table be created inside a trigger?

938


Is resultset an interface?

920


What happens when unicode strings concatenate with non-unicode strings?

1035


what is raid and what are different types of raid configurations? : Sql server database administration

995


What are indexers?

1050


Is ssrs support other database except ms sql server?

133


can you implement data mining in SSRS?

142


What happens if null values are involved in comparison operations?

928