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,3931,4004,4005,4006,5062,5074,5075,5085,5140,5150,5169,5170,5176,5476,5477,5617,5678,10000,10053,11359,11360,13988,14589,14597,15575,15794,17268,17766,18407,18777,18780,18781,18791,18792,19912,19914,19915,19916,19917,19918,20137,20163,21011,21013,21014,21159,21365,21745,21746,22240)
GROUP BY subtyp1 |