📅  最后修改于: 2022-03-11 15:05:18.079000             🧑  作者: Mango
SELECT s.Name FROM Students AS s JOIN Packages AS sp ON s.ID = sp.ID JOIN Friends AS f ON s.ID = f.IDJOIN Packages AS fp ON f.Friend_ID = fp.IDWHERE sp.Salary < fp.SalaryORDER BY fp.Salary;