How to find out the second largest element from mysql table
Answer Posted / prasadkonnur
select id from tbl_name order by id desc limit(0,1)
(selects 2nd highest id)
for nth highest
select id from tbl_name order by id desc limit(n-1,1)
| Is This Answer Correct ? | 13 Yes | 10 No |
Post New Answer View All Answers
How can you calculate the sum of any column of a table?
how can you test for null values in a database? : Mysql dba
What is the usage of ENUMs in MySQL?
Write command to import an mysql file?
What are the advantages of myisam over innodb?
Is mysql written in c?
What is meant by decimal (5,2)?
How do I know if mysql is installed on windows?
What is a storage engine?
What is mysqli procedural?
How to use triggers to track changes in mysql?
What is myisamchk?
How to use count function in mysql?
What is delimiter $$?
HOW TO FIND display the total number of weeks in the year of 1998 IN EMP TABLE