Answer: Aggregate Records Using MIN/MAX

Find a detailed explanation of how to find the second-highest number in a table using an SQL query.

Solution

The solution is given below:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.