You are viewing a single comment's thread. Return to all comments →
This is the shortest way possible!
select s.name from students as s join friends as f on s.id=f.id join packages as p1 on s.id=p1.id join packages as p2 on f.friend_id=p2.id where p2.salary>p1.salary order by p2.salary
Seems like cookies are disabled on this browser, please enable them to open this website
Placements
You are viewing a single comment's thread. Return to all comments →
This is the shortest way possible!