Answer: The GROUP BY Clause and the SUM Function
Find a detailed explanation of using the GROUP BY clause to group the records using SQL query.
Solution
The solution is given below:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.