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 out the second largest element from mysql table

Answer Posted / neelesh jain

LIMIT <n> == n rows will be returned
OFFSET <n> == skip n rows of the query result

SELECT Salary FROM Employee ORDER BY Salary DESC LIMIT 1
OFFSET 1;

so above query skip 1 element (as offset is 1), which is
biggest and returned 1 elemetn which is 2nd largest value.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do I need to pay for mysql?

900


Can I use mysql for free?

905


What are the differences between char and nchar?

1101


What is row level locking in mysql?

1012


How to shut down the server with 'mysqladmin'?

967


How do I completely remove mysql from windows?

972


Explain csv tables.

1014


What is the data source name for mysql?

954


Does mysql support nosql?

916


How to store binary data in mysql?

1002


How do I uninstall mysql connector?

957


How many tables we can create in mysql database?

952


Is mysql a programming language?

908


Explain what is mysql?

1038


HOW TO FIND display the total number of weeks in the year of 1998 IN EMP TABLE

2230