Interview questions
Predict the result, find the errors, explain the solution. You can read the questions without an account.
9 questions
Can you use a
SELECTalias inWHERE?Predict the resultWill
SUMtotal only three orders if you addLIMIT 3?Predict the resultWhat does
ORDER BYusing an alias return withLIMITandOFFSET?Predict the resultFind the bugs: employees earning above the company average
Find the errorsWhich runs last:
SELECT,FROM,WHERE, orGROUP BY?ExplainFrom interview write-ups: T-BankWhich statuses do
DISTINCTandLIMIT 2return?Predict the resultWhich groups remain after the
WHEREfilter?Predict the resultWhich departments remain after
LEFT JOINandWHERE?Predict the resultFind the bugs: the three highest-value paid orders
Find the errors