Interview questions
Predict the result, find the errors, explain the solution. You can read the questions without an account.
11 questions
Which order will
DISTINCT ONkeep for each customer?Predict the resultFind the bugs: Which rows remain after deduplication?
Find the errorsFind the bugs: Highest-paid employees in each department
Find the errorsWhich rows will a query with
GROUP BYandLIMITreturn?Predict the resultWhat will a query using
DISTINCTandUNION ALLreturn?Predict the resultFind the bugs: Each customer's latest paid order
Find the errorsFind the bugs: Top two products by units sold
Find the errorsWhich rows pass the running total filter?
Predict the result