SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='MENS BIKE CLOTHING' and upper(subtyp1)<>'EMPTY' and style_id IN (2136,2137,2138,2141,2148,2156,2162,2821,5851,5864,5868,5874,5875,5876,5882,5884,5900,6502,7437,8639,8664,10254,10286,10334,10338,10501,10608,10631,10687,10718,10729,10736,11557,14374,14683,14684,14782,14806,14842,15105,15662,15933,16004,16633,16755,16756,16804,17004,17074,17265,17271,18057,18257,18754,19179,19232,19233,19314,19315,19376,19507,20136,20362,20363,20701,21453,21454,21456,21650,21651,21712,22179,22180,22182,22183,22184)
GROUP BY subtyp1 |