SQL QuestSQL Interview Questions › NULL Handling

Failures with No Loss Estimate

EasyFreeQuerying BasicsNULL Handling

FDIC sometimes records a bank failure without an immediate estimated_loss figure (loss accounting closes later, or the failure resulted in zero loss to the deposit insurance fund). List the failures with NULL estimated_loss. Show name, city, state, failure_date. Order by failure_date descending.

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

failures

certnamecitystatefailure_datepre_failure_assetspre_failure_depositsresolution_typeestimated_loss
57488METROPOLITAN CAPITAL B&TCHICAGONULL1/30/2026261185212152FAILURENULL
5520SANTA ANNA NATIONAL BANKSANTA ANNANULL6/27/20257693871376FAILURE23460
28611PULASKI SAVINGS BANKCHICAGONULL1/17/20254946642741FAILURE30284

Expected output: Bank failures pending loss accounting

Hint

WHERE estimated_loss IS NULL — never use = NULL, that's always false in SQL.

Concepts

SELECT WHERE IS NULL NULL Handling

Practise the topic: SQL practice questions · NULL handling practice

In these company practice sets

Morgan Stanley

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

Related questions

Handling NULL ValuesEasy · FreeDefault Age for Missing Records (COALESCE)Easy · FreeLEFT JOIN: Watch the NULLs AppearEasy · FreeProperties Without Listed OwnerEasy · FreeChargeback Reason Codes: Resolved and Still OpenEasy · FreeGenre Box Office ReportMedium · 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