We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Here's a simple solution in MySQL:
Step 1: Calculate the salary of each student
Step 2: Calulate the salary of each friend
Step 3: Select the students where their salary is less than that of their friend
Placements
You are viewing a single comment's thread. Return to all comments →
Here's a simple solution in MySQL: Step 1: Calculate the salary of each student Step 2: Calulate the salary of each friend Step 3: Select the students where their salary is less than that of their friend