4 ms·
Select *
From employees
sort by salary desc
Select *
From employees
sort by salary desc
This is the same algorithm many companies use for benefits programs
Small nit-pic.
select * from employees sort by total_compensation desc;
Otherwise C Level folks who take a $1 salary but receive tons of options would be put at the bottom.