Interview questions
Predict the result, find the errors, explain the solution. You can read the questions without an account.
11 questions
How many rows does a window function see when the query includes
WHERE?Predict the resultCan you use an aggregate alias in
HAVING?Predict the resultFind the bugs: paid orders report
Find the errorsWhat happens when
LIMITis inside a subquery?Predict the resultWill the ranking match the output order?
Predict the resultWhat happens when you combine
DISTINCTwith a windowCOUNT?Predict the resultWhat does
SELECT DISTINCT COUNT(*)return withGROUP BY?Predict the result