select salary from(select salary,rank() over(order by salary desc)r from bal) where r=788