SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='TENTS AND HAMMOCKS' and upper(subtyp1)<>'EMPTY' and style_id IN (553,573,601,615,1442,1476,1478,1529,2099,2106,2115,2746,3815,4099,4717,4772,9538,9881,11349,11350,14545,14942,16501,16703,16704,16706,16720,17371,17589,19146,19148,19149,19150,19911,21756,21778)
GROUP BY subtyp1 |