SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='LIGHTING' and upper(subtyp1)<>'EMPTY' and style_id IN (660,673,695,714,715,742,743,3117,4134,4487,4488,4490,4492,4493,4806,5999,6000,6008,6011,6012,6016,6017,11248,15874,17332,17333,17334,17335,17573,17588,18331,18560,19088,19222)
GROUP BY subtyp1 |