SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='PADDLESPORTS' and typ='KAYAKS' and upper(subtyp1)<>'EMPTY' and style_id IN (1670,1681,1682,1683,1695,3005,3006,3012,3020,4711,4713,9163,14854,14855,15020,15024,15779,16371,16372,18902,18903,19521,19598,21970,21998,21999,22000,22072,17325)
GROUP BY subtyp1 |