Interview questions
Predict the result, find the errors, explain the solution. You can read the questions without an account.
10 questions
Will
GROUP BYinclude a department with no employees?Predict the resultDoes
MAX(name)return the name of the highest-paid employee?Predict the resultWill a query using
GROUP BYrun ifSELECTincludes an ungrouped column?Predict the resultFind the bugs: paid orders and unique buyers by month
Find the errorsFind the bugs: order counts and totals by customer
Find the errorsFind the bugs: minimum paid order amount per customer
Find the errorsHow do you sum item quantities in groups defined by a condition?
Predict the resultHow does
GROUP BYaggregate orders with different statuses?Predict the resultWhich customers pass the
HAVINGcheck on order amounts?Predict the result