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 first two highest column values from the employee table.
This should be single query.
If the highest column is
salary, you do this:You would do the same for any other columns, just replace the column name in the
SELECTand in theORDER BYsections.