SELECT Partners.partners_name AS "Partner", Users.login AS "User", SUM(Items.price) AS "Order SUM"
FROM Orders
INNER JOIN Partners ON Partners.id = Orders.partner_id
INNER JOIN Users ON Users.id = Orders.user_id
INNER JOIN Items ON Orders.item_id = Items.id
WHERE Orders.partner_id !=0
GROUP BY Partners.partners_name, Users.login
ORDER BY Partners.partners_name;