SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='BIKES' and upper(subtyp1)<>'EMPTY' and style_id IN (1269,10675,14990,15849,16271,16433,16494,16644,16665,17162,17214,17541,17547,17548,17600,17608,17653,17765,17966,17995,17997,18024,18075,18078,18105,18115,18164,18165,18181,18193,18300,18338,18362,18365,18464,18554,18555,18574,18575,18576,18577,18582,18610,18612,18661,18727,18732,18734,18735,18938,20031,20165,20166,20605,20812,20813,20839,20840,21055,21056,21830)
GROUP BY subtyp1 |