I want to have a query in my sql which will return the result as -
I am having a table named employee with columns name,salary,address. The query should return the f
If the highest column is salary, you do this:
salary
select salary from employee order by salary desc limit 2
You would do the same for any other columns, just replace the column name in the SELECT and in the ORDER BY sections.
SELECT
ORDER BY