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 out the second highest salary?

Answer Posted / annada

SELECT e.lastname,e.salary FROM employees e
WHERE 1=(SELECT count(*) FROM employess s
WHERE s.salary>e.salary


that will return 2nd highest salry .if we place insted of 1
as 2 then we can get 3 rd highest salary .

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

22. Display the order number, number of lines in the order, total number of items and total value for all orders that have a total value greater than $100

2022


What is a parameter file in oracle?

1138


How will you identify oracle database software release?

1016


Why does Oracle not permit the use of PCTUSED with indexes?

2427


Is there a combination of "like" and "in" in sql?

1070


How to rename a column in an existing table?

1037


What is an index associated with a constraint?

1041


hi friends i completed b.com 2004.i have 3y accounting exp. in manufacturing company.now i have completed oracle finance.pls suggest me how will get job in oracle.can i get job in oracle.

2370


How can I combine multiple rows into a comma-delimited list in oracle?

1062


What is the difference between truncate & delete command?

1189


How to assign a table row to a record variable?

1046


How to use in conditions in oracle?

1058


is there a tool to trace queries, like profiler for sql server?

1145


What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar

4605


What are the database administrators utilities available?

1037