SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Tops' and upper(subtyp2)<>'EMPTY' and style_id IN (5326,5391,5414,5535,5563,5564,5673,5745,5748,5754,5755,5762,5771,14068,14069,14275,15475,16659,16660,17858,18261,21059,21085,21086,21089,21090,21091)
GROUP BY subtyp2 |