I have a table like
and i want to summaries like this
So i want to sum packages for distinct items where my table could have multiple records that i can not just exclude cause are different.
I can not just
select sum(package) from table group by buyer,item;
and i can not also devide it with the count(item).