mysql - How to use group by in this cquery? -
I want to know how many sku
s in each unspsc
. Can anyone help?
SELECT eav.value AS 'unssc', eav.attribute_id = ea on catalog_product_entity and join Katlog_prodkt_netiti_warchar eav on e.entity_id = eav.entity_id eav_attribute ea of e.sku. Attribute_id WHERE ea.attribute_code = 'unspsccode'
SELECT eav.value AS 'Unspsc', from the list_product_netity and join catalog_product_net_required EAV on E. Antiai_aidi = eav.entity_id include eav_attribute eav.attribute_id on ea = ea.attribute_id WHERE ea.attribute_code = 'unspsccode' group by eav.value
Comments
Post a Comment