Answer: Using FIRST_VALUE(), LAST_VALUE(), and NTH_VALUE()
Find a detailed explanation of how to use FIRST_VALUE(), LAST_VALUE(), and NTH_VALUE() window functions in SQL.
Solution
The solution is given below:
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.