How to find out the second largest element from mysql table

Answer Posted / deo ram yadav

select BranchName
from Account
order by Balance desc limit 1, 1;
Note: ,BranchName' is attribute and 'Account' is table. 1,1 means leave one row and then take another one row.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are string data types?

649


Which statement is used to delete a table in MySQL.

565


How we get sum of column.

592


How to allow the user "sonia" to connect to the server from localhost using the password "passwd". Login as root. Switch to the mysql db. Give privs. Update privs.

707


What can I do with mysql?

585






What are the differences between mysql vs sql server?

558


What is the difference between the primary and unique key in mysql?

559


Is mysql deprecated?

541


What is the maximum number of columns per table?

568


Write a query to create a database and a table?

578


How to Creating a new user. Login as root. Switch to the MySQL db. Make the user. Update privs.

646


What is mysql in linux?

574


Why do we need mysql?

611


How you will Show unique records.

634


Are stored procedures precompiled?

600