Interview questions
Predict the result, find the errors, explain the solution. You can read the questions without an account.
14 questions
Can a subquery in
FROMrun without an alias?Predict the resultWhich orders does
EXISTSfind when checking for a later order?Predict the resultHow many customers does
INfind when the subquery returnsNULL?Predict the resultHow many rows does
UNION ALLreturn withLIMIT 3at the end?Predict the resultFind the bugs: the highest-priced item in each order
Find the errorsFind the bugs: employee reporting hierarchy
Find the errorsWhich orders have totals above the average for paid orders?
Predict the resultWhich customers pass the aggregate filter?
Predict the resultWhich customers have only paid orders?
Predict the resultWhich department will the nested
MAXselect?Predict the resultFind the bugs: customers with multiple paid orders
Find the errorsFind the bugs: three required event types
Find the errors