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 / amruta dash

select max(salary) from tbl where salary not in (select max
(salary) from tbl);

Is This Answer Correct ?    11 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to make a remote connection in a database?

921


Name some of the open source software that you can use in alternative to SSR?

151


How to loop through returning rows?

968


What is transaction server distributed transaction?

976


What is the stored procedure?

944


How do you create a data source?

859


How do you manipulate data?

847


How to create a local temporary stored procedure?

946


What are the disadvantages of using the stored procedures?

1015


Describe the functionalities that views support.

1049


Tell me what do you understand by a view? What does the with check option clause for a view do?

955


Define primary key?

1077


What is a non clustered primary key?

871


Can we write trigger for view?

944


Describe how to use linked server?

930