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 (1751,1952,2224,5307,5535,5563,5564,5871,6139,6240,6316,11311,15555,15729,15741,16660,16794,16836,16870,16959,19297,20569,21089,21114,21123,21124,21236,21359,21592,21594)
GROUP BY subtyp1 |