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,714,715,3117,4152,4487,4488,4490,4492,4493,5999,6000,6008,6011,6012,6016,6017,11248,11249,15241,17332,17333,17334,17335,17336,17588,17989,17991,18560,19088,19222,20047,20944)
GROUP BY subtyp1 |