SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='KIDS' and subtyp1='Footwear' and upper(subtyp2)<>'EMPTY' and style_id IN (1879,1880,3353,9037,9073,14527,15659,15906,16006,16938,18045,18046,18048,18049,18142,18143,18144,18176,18671,18921,18922,19078,19173,21954,1921,1940,8968)
GROUP BY subtyp2 |