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

What is oracle join syntax?

1061


How to do a full database export?

1153


What view(s) do you use to associate a users SQLPLUS session with his o/s process?

2398


How to define an oracle cursor variable?

1092


What are the differences between number and binary_float in oracle?

1149


How do I start tns listener?

1096


How to use "if" statements on multiple conditions?

1217


Explain the truncate in oracle?

1012


How to convert raw data type into text in oracle? Explain

1046


What are the major difference between truncate and delete?

1134


What is a named program unit?

1137


What is query image?

1023


What is difference between sid and service name in oracle?

1008


What are the benefits of ordbms?

1137


what is normalisation?what are its uses?

2329