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 (5326,5331,5339,5361,5363,5365,5383,5391,5414,5479,5535,5551,5563,5564,5565,5594,5637,5638,5649,5662,5696,5719,5722,5726,5728,5732,5745,5748,5754,5755,5762,5771,14067,14068,14069,14255,14275,15475,15856,16658,16659,16660,16669,16683,17840,17857,17858,18261,19332,19334,20286,20316,21057,21059,21066,21085,21086,21087,21088,21089,21090,21091)
GROUP BY subtyp1 |