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,2145,2148,2156,2162,2821,5851,5864,5868,5874,5875,5876,5882,5884,5900,6502,7437,8639,10254,10286,10338,10608,10631,10687,10718,10729,11557,14374,14782,14842,15105,16004,16633,16755,16756,16804,17004,17074,17265,18057,18754,19179,19232,19233,19314,19376,19507,20136,20362,20701,21453,21454,21456,21712,21831,21838,22179,22180,22182,22183,22251)
GROUP BY subtyp1 |