SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and upper(subtyp1)<>'EMPTY' and style_id IN (1319,1429,1750,2829,3100,3293,3294,3635,5326,5365,5563,5638,5649,5719,5732,5745,5771,6139,6295,11311,14069,15475,16405,16669,16683,16835,16870,16959,17895,18261,18413,19035,19167,19215,19297,19557,20172,20501,20684,20697,20698,20876,20904,20905,20957,20958,20959,20962,20963,20982,21057,21088,21113,21114,21115,21116,21117,21118,21120,21121,21124,21126,21130,21133,21134,21136,21140,21240,21241,21315,21319)
GROUP BY subtyp1 |