SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='CAMP KITCHEN' and upper(subtyp1)<>'EMPTY' and style_id IN (1440,1443,1444,1452,1458,1460,1463,1468,1472,1473,1474,1475,1480,1482,1486,1490,1492,1493,1496,1508,1527,1528,1539,1540,1541,1543,1544,1546,1548,1549,1550,1551,1552,1553,2448,2449,2452,2456,2457,2458,2770,3114,3115,3124,3167,3171,3172,3759,3760,3786,3787,3827,3856,3903,3968,4000,4016,4033,4036,4074,4075,4100,4120,5040,5042,5043,6601,8372,8373,8374,8403,8408,11333,13970,14182,14970,15336,15337,15550,15589,15590,15802,17317,17318,17694,17831,18259,19004,19189,19605,20910,20941,21681,21742,21743,21757,21758,21759,21760,21761,21762,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21973,22224)
GROUP BY subtyp1 |