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,88,89,90,94,99,101,103,104,106,108,111,113,114,115,119,449,453,454,455,3113,3119,3120,3765,3785,3798,3802,3831,3834,3835,3877,3898,3915,3919,3922,3924,3925,3939,4039,4089,4124,4143,4158,4185,4188,4201,4202,4522,4524,4525,4529,4538,7759,8386,8387,8399,8400,8450,8451,13975,13976,13977,14366,14415,14416,14418,14419,14742,15118,15333,15650,15690,15786,16145,16914,17088,17109,17112,17115,17116,17406,17688,18260,19187,19240,19254,19465,19619,19984,20648,21690,21756,21774,21775,21778,21813)
GROUP BY subtyp1 |