runtime
78 / 88

task NULL handling · easy

Debug: find members with unknown credits

Fix the filter to return ids of members whose credits are unknown, ordered by id.

what to return

Columns
id
Rows
1 row · in the order asked
Watch for
Use the sample data shown here. NULL is not zero or empty text. Keep duplicate result rows.
Skill
Repair query semantics and verify the correction on changed data. Refresher: Understand NULL →

expected result

Your query should return exactly these columns and values. Run it and compare.

expected result1 row · in this order
id
4

all 1 rows

data you can query

Sample rows from each table. Each column shows its type underneath; → marks a link to another table.

studio_members4 columns · 4 rows
idinteger · keynametextteamtextcreditsinteger
1LuzRed80
2KitRed80
3RemyBlue50
4SolBlueNULL

all 4 rows

studio_bookings4 columns · 4 rows
idinteger · keymember_idinteger → studio_membersfeeintegerbooked_attext
111202026-04-01
121302026-04-30
132NULL2026-05-01
14NULL202026-04-15

all 4 rows

solution.sql
 

Hints and the answer are always available. Using them counts the question as solved with help.