Interview questions
Predict the result, find the errors, explain the solution. You can read the questions without an account.
11 questions
What does
LAGreturn for the first row?Predict the resultFind the bugs: running total of payments for each customer
Find the errorsWhat will this
LEADquery return?Predict the resultHow does
ROW_NUMBERwork when event types alternate?Predict the resultFind the bugs: two most recent events per user
Find the errorsWhat will
FIRST_VALUEandMINreturn for a customer's orders?Predict the result