SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Footwear' and upper(subtyp2)<>'EMPTY' and style_id IN (1830,1835,1888,1889,1893,1951,3260,14133,14728,15199,15432,15433,15637,15658,15729,15736,15913,16959,17180,17182,17489,18027,18035,18140,18175,19253)
GROUP BY subtyp2 |