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 are commonly used odbc functions in php?

1002


What are the restraints imposed on the table design by a merge replication?

1023


Explain what are the different index configurations a table can have?

1094


how you can list all the tables in a database?

1015


What is the need for group functions in sql?

1060


How to list all login names on the ms sql server?

1125


what is database replicaion? : Sql server database administration

1164


How to receive output values from stored procedures?

1122


How to retrieve error messages using odbc_errormsg()?

1037


What is the command used to recompile the stored procedure at run time?

1060


Write the SQL query to drop, truncate and delete table.

958


Define outer join?

972


What is the difference between indexing and hashing?

1145


write an SQL query to list the employees who joined in the month of January?

1666


What is Dependency Injection and provide example?

1102