placements hackerrank solution code example
Example: placements hackerrank solution
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;