SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='MORE...' and typ='PUBLICATIONS' and upper(subtyp1)<>'EMPTY' and style_id IN (3849,4092,4174,4177,4549,4561,4577,4609,4613,4623,4646,4647,4656,4660,4667,4670,4672,4676,4684,4686,4689,4691,4699,4708,4710,14232,14983,14987,16034,16035,17291,17465,17565,17961,18082,18595,18601,19131,19132,19134,19136,19137,19404,19406,20703,20704,20705,4088)
GROUP BY subtyp1 |