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 / lekhraj deshmukh

select marks from tbl_data where marks<(select max(marks)
from tbl_data) order by marks desc limit 1;

Is This Answer Correct ?    21 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to return query output in html format?

933


Why do we use group by and order by function in mysql?

920


What are the limitations of mysql?

1048


How to check if a record exists in a mysql database php?

890


How to delete a column and add a new column to database

944


all the queries used in sql

2657


How to find second highest salary from a table?

1022


write a command to view the content of the table

899


What is the use of mysqli_fetch_assoc?

903


Where the database is stored in mysql?

967


How do I install and use mysql?

935


What is ibdata1?

909


How to write date and time literals?

1030


how to search second maximum(second highest) salary value(integer)from table employee (field salary)in the manner so that mysql gets less load?

884


How do I setup a mysql database?

980