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,11549,11566,14423,14990,15038,15125,15849,15956,16271,16433,16434,16436,16494,16644,16665,17214,17531,17534,17541,17547,17548,17599,17600,17608,17653,17698,17703,17726,17765,17966,17995,17997,18015,18023,18024,18075,18078,18105,18115,18164,18165,18181,18193,18300,18338,18362,18365,18464,18512,18554,18555,18574,18575,18576,18577,18580,18582,18583,18588,18610,18611,18612,18661,18727,18730,18731,18732,18734,18735,18938,19603,20031,20165,20166,20605,20812,20813,20839,20840,21055,21056,21830)
GROUP BY subtyp1 |