URI SQL Solution 2609 Products by Categories - Solution in PostgreSQL

select categories.name,sum(amount) "sum"
from products
inner join categories on products.id_categories=categories.id
group by categories.name;
Share:

0 Comments:

Post a Comment