You are viewing a single comment's thread. Return to all comments →
In MySql
(select A.name from (select a.id id, a.name name, p.salary salary, f.friend_id fid from Students a join friends f on f.id=a.id join packages p on p.id=a.id) A join students b on b.id=A.fid join packages pp on pp.id=A.fid where A.salary<pp.salary order by pp.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 →
In MySql