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 (639,641,653,656,657,679,680,703,710,729,730,732,747,761,771,782,787,3677,3691,3840,6007,6013,6024,6029,11241,11242,11243,15239,15240,15918,16061,16063,16064,16141)
GROUP BY subtyp1 |