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

Explain use of expression builder.

1070


Can You Use A Stored Procedure To Provide Data To An Ssrs Report?

152


What is the difference between cartesian product and cross join?

905


How do you trace the traffic hitting a sql server?

1192


How can we migrate from SQL server to SQL Azure?

113


Tell me something about security and sql azure?

116


Which Model uses the SET concept

1043


How to change the name of a database user?

1012


What are the disadvantages of using querystrings to send data from one page to another?

1071


What is sql view?

1117


You are creating an application where users are asked their gender in the gender combo box you have three options: ‘male’ , ‘female’ and ‘i choose not to disclose’ these options are stored in the table as 1, 0 or null which datatype should you use?

1052


Can you name some of the dml commands in sql?

1079


What is use of except clause? How does it differ from not in clause?

1068


What are the different types of collation sensitivity?

1177


How can I change procedure name in sql server?

1114