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 largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / amar banerjee

sol1> select MAX(salary) from emp where salary< (select MAX(salary) from emp);

sol2> select salary from emp sort by salary desc limit 1,1;

for finding nth position

select salary from emp sort by salary desc limit n-1,1;

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which tools are available to manage SQL Azure databases and servers?

115


What is trigger explain with program?

986


Explain the relational database management system (rdbms)?

1100


What is inner join? Explain with an example?

1225


Find columns used in stored procedure?

991


Do you know what is similarity and difference between truncate and delete in sql?

1010


Does sql server 2000 clustering support load balancing?

980


List all types of constraints in sql server?

1048


Which data type columns are the best candidates for full-text indexing?

971


How will you decide the active and passive nodes?

1133


Why do we use stored procedures in sql server?

947


What is a constant or literal in ms sql server?

1049


How do you manipulate data?

914


What is the difference between web edition and business edition?

111


What is database replication?

1148