SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAR RACKS' and typ='BIKE RACKS' and upper(subtyp1)<>'EMPTY' and style_id IN (3489,3490,3492,7650,9953,9969,9984,10010,10024,10031,10035,10037,10052,10063,10071,10072,10104,10118,10127,10138,11156,11171,11173,11174,11197,11510,11535,14295,14412,14413,14652,14913,14914,15385,15456,16851,16852,17270,18258,10075)
GROUP BY subtyp1 |