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,1461,1462,1463,1468,1472,1473,1474,1475,1480,1482,1486,1490,1492,1493,1496,1508,1527,1528,1538,1539,1540,1541,1543,1544,1545,1546,1548,1549,1550,1551,1552,1553,6601,14970)
GROUP BY subtyp1 |