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
How does mysql encrypt passwords?
Is mysql distributed?
What, if a table has one column defined as TIMESTAMP?
What is triggers and how it can be used in mysql?
What is different between sql and mysql?
What is a table schema?
What is sharding in mysql?
How to display top 50 rows?
What's the latest version of mysql?
Why are function needed?
How do I connect to mysql database?
Is mongodb faster than mysql?
What is latest version of mysql?
What is general log in mysql?
Is postgresql better than mysql?