SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='MORE...' and typ='TRAVEL' and upper(subtyp1)<>'EMPTY' and style_id IN (3843,3848,4004,4005,4006,5074,5085,5140,5169,5170,5176,5476,5477,5617,5678,10000,10053,11359,11360,14589,14597,15794,17268,18407,18777,18780,18792,19914,19917,19918,20163,21011,21013,21159,21365,21744,21745,22240)
GROUP BY subtyp1 |