SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='MORE...' and typ='CLIMBING' and upper(subtyp1)<>'EMPTY' and style_id IN (641,653,656,657,679,680,710,712,729,730,732,747,759,771,782,3677,3691,6024,11239,11241,11242,15239,15632,15918,16061,16064,16065)
GROUP BY subtyp1 |