🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.40000 (Arjun's salary)
  2. B.58000 (Kabir's salary)
  3. C.45000 (his own salary)
  4. 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 →