Which of the following queries correctly finds the second-highest salary without using LIMIT or TOP?

SQL Fundamentals Hard

SQL Fundamentals — Hard

Which of the following queries correctly finds the second-highest salary without using LIMIT or TOP?

Key points

  • Subquery is used to find the maximum salary
  • Comparison is made to find the second-highest salary
  • Avoids using LIMIT or TOP keyword

Ready to go further?

Related questions