🎁 Exclusive Offer! Join our Telegram Channel to get **special discounts** and updates! 🚀

🚀 Struggling with coding interviews? We've got you covered! 💡 Practice real questions, sharpen your skills, and land your dream job! 🎯
Question 89 - 100% Working Solution | Buy Now

Description

8 Live
Your boss wants to identify the successful projects running in your company, so he asked you to prepare a list of all the currently active projects and their average monthly income. You have stored the information about these projects in a simple database with a single Projects table that has five columns: - internal_id: the company's internal identifier for the project - project_name: the official name of the project - team_size: the number of employees working on the project - team_lead: the name of the project manager - income: the average monthly income of the project Your boss says that internal project ids are irrelevant to him and that he isn't interested in how big the teams are. Since that's the case, he wants you to create another table by removing the internal_id and team_size columns from the existing Projects table. Return it sorted by internal_id in ascending order. Example: For the following table Projects: | internal_id | project_name | team_size | team_lead | income | |-------------|--------------|-----------|-----------|--------| | 101 | ManRoduce | 15 | John Doe | 50000 | | 102 | WebScribe | 10 | Jane Smith| 30000 | | 103 | DataFlow | 20 | Sam Black | 70000 | You need to return the following table: | project_name | team_lead | income | |--------------|-----------|--------| | ManRoduce | John Doe | 50000 | | WebScribe | Jane Smith| 30000 | | DataFlow | Sam Black | 70000 |

Asked in: INFOTECH

Image of the Question

Question Image

All Testcases Passed ✔



Passcode Image

Solution


Please login to view the solution