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 (1241,1269,10675,11549,14352,14423,14990,15038,15125,15849,15956,16271,16434,16436,16665,17080,17124,17204,17205,17209,17214,17248,17293,17379,17529,17531,17534,17541,17547,17548,17599,17600,17608,17698,17725,17726,17765,17919,17966,17995,17997,18015,18023,18024,18075,18077,18078,18115,18164,18165,18181,18193,18300,18338,18362,18364,18365,18464,18512,18554,18555,18574,18575,18576,18579,18580,18581,18582,18588,18592,18610,18611,18660,18661,18727,18728,18729,18730,18732,18733,18734,18735,18747,18938,19141,19487,20031,20165,20166,20599,20605)
GROUP BY subtyp1 |