SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='BIKE TOOLS' and upper(subtyp1)<>'EMPTY' and style_id IN (1087,2509,6424,6578,6781,6986,7016,7177,7558,7611,7663,7733,7738,7858,10400,10594,14081,14147,14156,15367,15461,15580,17366,17637,17920,18402,18652,19061,19228,19370,19764,19889,19898,19899,20311,20638,20747,20811,21967,22365,22722,10220)
GROUP BY subtyp1 |