SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Tops' and upper(subtyp2)<>'EMPTY' and style_id IN (1750,5326,5563,5745,5771,11311,14069,15475,16870,17895,18261,19035,19297,20957,20958,20959,21114,21117,21121,21124,21126,21133,21134,21136,21140,21241,21315)
GROUP BY subtyp2 |