I\'m trying to figure out how many product_ids per material per type, using the following schema:
CREATE TABLE IF NOT EXISTS `A` ( `Product_id` int(6) unsig