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...

how to find the second highest salary from emp table?

Answer Posted / esakki

select max(salary) from employee where salary not in (select
top 1 salary from employee order by salary desc )


change 1 to 2,3,4,......like that for 3rd max ,4th max
salary.....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are stored procedures faster than queries?

943


What are the different schemas objects that can be created using pl/sql?

1021


What is nosql db?

964


What are all the ddl commands?

1177


Can we use view in stored procedure?

896


What is a sql select statement?

1034


how many values can the set function of mysql take? : Sql dba

984


Can you inner join the same table?

988


What is meant by temporal data?

963


What is data type in database?

989


Enlist the data types that can be used in pl/sql?

1064


What is a left join?

951


What is a constraint? Tell me about its various levels.

1160


What is the difference between jpql and sql?

1091


What is AUTH_ID and AUTH_USER in pl/sql ?

2185