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.
SELECT MAX( col ) FROM table WHERE col < ( SELECT MAX( col ) FROM table )
2.1m questions
2.1m answers
60 comments
57.0k users