To find max salary in sql without using max function we are going to use top keyword and order by in sql.
Select top 1 salary from tablename order by salary desc
Here we are using order by to order the column salary by descending and from that i am selecting the top 1st using top1 .