You are viewing a single comment's thread. Return to all comments →
select s1.name from Students s1 join Friends f1 on s1.ID = f1.ID join Packages p1 on f1.Friend_ID = p1.ID join Packages p2 on f1.ID = p2.ID where p1.salary > p2.salary order by p1.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 →
MySQL - simplest solution using join