I am trying to display a row or multiple rows having the maximum salary, I have tried the following things. I want to display at least the name and the max(salary) but I am unable to do so.
I tried to execute this code snippet but it shows me the first row instead of showing the one which has the maximum salary.
select * from instructor
having max(salary);
I also tried
select name, max(salary) from instructor;
But this returned the name from the first row and the maximum salary value from the whole column.