Writing a query to find the average and the first three ranks only should come In the output
Anonymous
select avg(salary) from (select name, salary,rank() over(order by salary desc) as rank from emp_tbl) where rank <= 3;
Check out your Company Bowl for anonymous work chats.