SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='CAMP FURNITURE' and upper(subtyp1)<>'EMPTY' and style_id IN (2098,2099,2100,2102,2103,2104,2105,2106,2107,2108,2109,2111,2112,2113,2114,2115,2116,2743,2751,2752,2753,2755,3817,14171,14428,14430,14432,14435,14437,14542,14546,14547,14756,14757,14858,15615,16709,16712,17186,17187,17188,17189,17192)
GROUP BY subtyp1 |