How to find out the second largest element from mysql table
Answer Posted / prasad
select id from tbl_name order by id desc limit(1,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 ? | 5 Yes | 5 No |
Post New Answer View All Answers
How do you restart mysql?
How to Change a users password from unix shell.
How do I install and use mysql?
What is the insert?
How to include comments in sql statements?
Is number a datatype in mysql?
What are the functions of mysql?
can you tell what are the different set operations available in mysql? : Mysql dba
How do you concatenate strings in mysql?
How to include character strings in sql statements?
How to run a sql statement?
What is difference between mysql and mysqli?
What is data node in mysql cluster?
How can you count the total number of records of any table?
What language does mysql use?