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 / yogesh

A little correction:

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

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

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What options are there to delete rows on the publisher and not on the subscriber? : sql server replication

1222


What purpose does the model database server?

1103


What is the syntax to execute the sys.dm_db_missing_index_details?

1031


When would you use a before or after trigger?

915


How to optimize stored procedure optimization?

897


What is self contained scalar sub query?

977


What are the operating modes in which database mirroring runs?

1092


How to create an index on a view?

1072


What is built-in/administrator?

1019


What is auditing in sql server?

930


What is GUID in sql server?

1170


What are the steps you will take to improve the performance of a poor performing query?

981


What is user-defined scalar function?

972


What do we have to check in database testing?

1023


What is sql injection and why is it a problem? : sql server security

1141