SQL QuestSQL Interview Questions › Querying Basics

Top 10 Banks by Assets

EasyFreeQuerying Basics

The FDIC tracks every active US commercial bank in their institutions table. Show the name, city, state, and total_assets of the top 10 largest banks by total assets. Order by total_assets descending. This is the kind of opening question a junior analyst gets on day one at a regulator or bank consultancy — show me the league table.

Solve it in the browser editor →

Runs on SQLite in your browser, graded against the expected result, no signup. A wrong answer gets a diagnosis, not just "incorrect".

Schema

institutions

certnamecitystatezipcharter_classestablished_datetotal_assetstotal_depositstotal_equityoffice_countbank_class
628JPMorgan Chase Bank, National AssociationColumbusOH43240801/01/1824375266200026978420003359360005335N
3510Bank of America, National AssociationCharlotteNC282021304410/17/1904263682300021019680002462500003840N
7213Citibank, National AssociationSioux FallsSD57108146106/16/181218364360001465300000176530000958N

Expected output: JPMorgan, Bank of America, Citibank... top 10 ordered by assets

Hint

The hint for this one spells out most of the query, so it stays in the editor. Reach for SELECT, ORDER BY, LIMIT, and open the hint there if you stall.

Concepts

SELECT ORDER BY LIMIT

Practise the topic: SQL practice questions

In these company practice sets

JPMorgan

A SQL Quest challenge matched to patterns reported for these companies — not a question any of them has published.

Related questions

Your First QueryEasy · FreePick Your ColumnsEasy · FreeFilter with WHEREEasy · FreeComparison OperatorsEasy · FreeMultiple Conditions (AND / OR)Easy · FreeThe IN OperatorEasy · Free

Where would this cost you points in an interview?

Ten questions, no signup: a Skillmap across nine SQL skills and the one to fix first.

Take the readiness test