How can I print the first two maximum values under an attribute (column) in a database table using SQL?
I have a column named salary
that contains different rows, (approximately 10 rows). We need to print out the first two maximum values.
I know we can get the first maximum value by using max
function, but what can I do if I need the first two values?