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,15849,16271,16433,16494,16644,16665,17162,17214,17547,17548,17608,17966,17995,17997,18024,18075,18105,18164,18165,18181,18193,18338,18365,18464,18554,18555,18574,18575,18576,18577,18582,18610,18661,18727,18733,18734,18735,20165,20166,20605,20812,20813,20839,21055,21056,21830,21867,21868,21869,22246,22525,22564)
GROUP BY subtyp1 |