mysql - How to use group by in this cquery? -


I want to know how many sku s in each unspsc . Can anyone help?

Join
  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

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -