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,10031,10037,10052,10063,10071,10072,10118,10127,10130,10138,11157,11173,11174,11197,14295,14412,14413,14913,14914,15456,16851,16852,17270,22438,10075)
GROUP BY subtyp1 |