← Quiz: Window Functions: all 10 questions
Quiz: Window Functions · Question 7 of 10
LEAD(salary) OVER (ORDER BY joined) — what does it show for Om, who joined just before Arjun?
LEAD(salary) OVER (ORDER BY joined) — what does it show for Om, who joined just before Arjun?
- A.40000 (Arjun's salary)
- B.58000 (Kabir's salary)
- C.45000 (his own salary)
- D.NULL
Answer & explanation
Correct answer: 40000 (Arjun's salary)
LEAD looks at the next row in the window order.
Can you get the rest right without peeking?
Take the timed Quiz: Window Functions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →