8questions
BeginnerTypeScript
8 subjects
3 easy4 medium1 hard
Why should a new project turn on `strict`, and what does it actually change?
Start practising5 easy10 medium5 hard
// 20 of 20 questions · 20 subjects
When would you pick a relational database over a document store, and what do you give up?
easyRelational ModelSQL vs NoSQL
Why does `WHERE discount = NULL` return no rows, and how should you compare against NULL?
easyNULLOperators
mediumALTER TABLETRUNCATE
Why enforce rules with database constraints when the application already validates input?
easyForeign KeysCHECK
Why did a LEFT JOIN start behaving like an INNER JOIN after adding a filter?
mediumLEFT JOINCommon Mistakes
What is a correlated subquery, and when is it better or worse than a JOIN?
hardCorrelated SubqueriesEXISTS
Why can wrapping a column in a function inside WHERE make a query slow, and how do you avoid it?
mediumFunctionsSargability
easyROUNDInteger Division
How would you use CASE, COALESCE and NULLIF to build a report without extra queries?
mediumCASECOALESCE
hardTime ZonesTIMESTAMP
When would you use a view versus a materialised view, and what are the hidden costs of each?
mediumViewsMaterialised Views
How do you choose the column order of a composite index, and why not just index every column?
mediumComposite IndexesWrite Cost
hardIsolation LevelsRace Conditions
mediumGRANTLeast Privilege
When does it make sense to put logic in a stored procedure or function, and when does it hurt?
mediumProceduresBusiness Logic
Walk through how you would diagnose a query that went from 50 ms to 12 seconds overnight.
hardEXPLAINQuery Plans
hardWindow FunctionsCTEs
8questions
Beginner8 subjects
3 easy4 medium1 hard
Why should a new project turn on `strict`, and what does it actually change?
Start practising20questions
Beginner20 subjects
5 easy10 medium5 hard
The same JavaScript file runs in Chrome but crashes in Node with "document is not defined". What is the language, and what does the runtime add?
Start practising22questions
Beginner22 subjects
8 easy11 medium3 hard
What makes a coding agent different from autocomplete or a chat window, and what does that change about how you review its work?
Start practising