6 Meal sums error: Group and sum the products by amount paid


Hi there, what is wrong here:

select name, round(sum(amount_paid),2)
from order_items
group by name
order by 2 desc;

if I add to the group statement
group by name, sum(amount_paid)

I get a different error (aggregate functions are not allowed in the group by clause

So, the question is:
How can I group the sum?


Obviously this is a bug.
I logged out and signed in again, then there as the same error, but I was able to continue to the next excercise...


If you add a space before '2) in the first line the checker will pass it.