SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='HEALTH AND SAFETY' and upper(subtyp1)<>'EMPTY' and style_id IN (75,76,78,80,90,92,93,94,95,99,100,101,103,105,106,107,109,113,114,115,119,121,443,445,448,449,453,2040,2765,3119,3120,3765,3772,3784,3785,3798,3802,3816,3831,3834,3835,3869,3877,3886,3898,3919,3921,3922,3925,3999,4039,4055,4089,4111,4124,4132,4158,4185,4202,4742,8392,8399,8421,8422,8450,8451,9215,11215,11337,13945,13975,13976,14172,14366,14415,14416,14418,14958,15060,15118,15650,15651,15690,15926,15927,15936,16311,16518,16698,16914,17088,17109,17112,17113,17114,17117,17118,17136,17403,17404,17406,17407,17562,17564,17688,17832,17833,18051,18260,18270,18654,18904)
GROUP BY subtyp1 |