How to find out the second largest element from mysql table
Answer Posted / salil
SELECT max( t1.col )
FROM `table` t1
WHERE t1.col < (SELECT max( t2.col ) FROM `table` t2);
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What are the advantages of mysql in comparison to oracle?
how to connect a php script with the mysql database?
What is timestamp in mysql?
why not null is not allowed at table level
What are the 'mysql' command line arguments?
How do I change global variables in mysql?
What is save point in mysql?
Is mysql a good database?
What is the current version of mysql?
How do I disconnect mysql workbench?
In which format data is stored in mysql database?
What is difference between mysql and mysql workbench?
How to find the unique values if the value in the column is repeated?
Does mysql scale well?
How to delete a column and add a new column to database