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,4109,4134,4152,4487,4488,4490,4492,4493,4806,5999,6000,6008,6011,6012,6016,6017,15241,15874,17332,17333,17334,17336,17573,17588,17989,17991,18331,18560,19088,19222,20047,20502)
GROUP BY subtyp1 |