SQL Quest › SQL 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". Free accounts get 10 free challenge solves, and this can be one of them.

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

Read the concept: IS NULL vs = NULL

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

Blank Is Not NULL: A Port Data-Quality ReportHard · ProHandling NULL ValuesEasy · FreeDefault Age for Missing Records (COALESCE)Easy · FreeProperties Without Listed OwnerEasy · FreeFare Imputation AnalysisMedium · FreeHandle NULL AgesMedium · 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