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 / krish

select max(sal) frem tbl where sal <(select max(sal) from tbl;

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are actions, how many types of actions are there, explain with example? : sql server analysis services, ssas

966


What is difference between delete and truncate commands?

997


Give an example of why you would want to denormalize a database

927


Explain the third normal form(3nf)?

896


Introduction of rollup clause using sum and group by clause?

901


What are different types of database indexes?

1014


What is side by side migration in sql server?

1023


When cursors are useful?

1038


Explain about SQLOS?

948


What are the benefits of normalization?

1044


How to execute a stored procedure in ms sql server?

1071


How can I add Reporting Services reports to my application?

125


How to use “drop” keyword in sql server and give an example?

1091


What is difference between primary key and foreign key?

836


what is a transaction? : Sql server database administration

935