SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='COMPONENTS' and subtyp1='Tires' and upper(subtyp2)<>'EMPTY' and style_id IN (2819,6596,6845,7160,7287,7363,7628,7744,10274,10282,14582,14879,14880,14881,14882,14883,15352,15465,15587,15975,15976,15977,15996,16643,16744,16745,17516,17879,18486,18514,19294,19658,19848,19849,20170,20845,20847,20849,20850,20852,20888,20889,20903,21472)
GROUP BY subtyp2 |