• + 0 comments

    the easiest one in all of discussion for mysql- SELECT S.Name FROM Students S JOIN Friends F ON S.ID = F.ID JOIN Packages P1 ON S.ID = P1.ID JOIN Packages P2 ON F.Friend_ID = P2.ID WHERE P2.Salary > P1.Salary ORDER BY P2.Salary;