TOPIC

Wrong answer

Eder Braz asked 2 years ago

select categories.name, sum(amount) as sum from products inner JOIN categories on products.id_categories=categories.id group by categories.id order by categories.name;

Whats is wrong? my order?

Remember not post solutions. Your post may be reviewed by our moderators.

  • Maurilio Nose replied 1 year ago

    Exactly, just remove the ORDER BY clause and your code should work.