Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (20.3k points)

What is the simplest SQL query to find the second largest integer value in a specific column?

There are maybe duplicate values in the column.

1 Answer

0 votes
by (40.7k points)

Try using the below code:

SELECT MAX( col )

  FROM table

 WHERE col < ( SELECT MAX( col )

                 FROM table )

Related questions

0 votes
1 answer
asked Apr 20, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...