SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Footwear' and upper(subtyp2)<>'EMPTY' and style_id IN (2444,2446,3324,3347,3676,4960,8154,8183,8202,8327,10934,14073,14143,14229,15090,15375,15517,15763,15881,16724,16727,16861,16863,16866,16933,16939,16958,16994,16998,17002,17650,18186,18312,18429,18538,18615,18616,19007,19009,19040,19042,19068,19122,19231,19384,19885,19994,20002,20003,20005,20027,20203,20365,20383,20504,20505,20507,20566,20602,20912,20972,20993,21395,21396,21714,21877)
GROUP BY subtyp2 |