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

Why we should not use triggers?

919


What are constraints?

958


What is difference statement and preparedstatement?

934


What is faster join or union?

1109


What is difference between inner join and full join?

1005


What does ss stand for sexually?

1009


What encryption security is available in sql azure?

99


How much is a sql server license?

900


What is dirty read?

1041


Is foreign key unique?

957


What are the types of subquery?

988


Explain the concept of view and Types of views in SQL server?

941


What is sub-query in sql server? Explain its properties.

1040


What are built in functions?

951


What are the steps you will take to improve the performance of a poor performing query?

926