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 (206,3792,4166,4539,4551,4554,4557,4558,4593,4629,4657,4663,4690,14345,14985,14988,15058,15220,15348,17256,17744,17745,17962,18598,18603,19133,19303,19505,19930,4675)
GROUP BY subtyp1 |