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 (656,657,679,703,710,712,729,730,731,732,747,761,771,782,787,3677,3691,6024,11239,11240,11241,11242,11243,11246,15632,15918,16061,16062,16063,19493,19494,19495,20125,20127)
GROUP BY subtyp1 |