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

What is the Main Difference between ACCESS and SQL SERVER?

1146


What is apply operator in sql?

1022


Equi join and non equi join is possible with sql server?

1030


What is function of CUBE ?

1052


Explain about Normalization?

1069


Which data type columns are the best candidates for full-text indexing?

975


Can you explain what is indexed view? How to create it?

914


How we can refresh the view?

1113


How to read data in a table with "select" statements?

977


What are information schema views?

994


What is data file in computer?

958


How does index makes search faster?

984


What is difference between cte and view?

924


What are different types of roles provided by ssrs?

152


What is the use of floor function in sql server?

1092