SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='ACCESSORIES' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
10
COOL WEATHER ACCESSORIES
2
14
GLOVES
CACHED
false
EXECUTIONTIME
27
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='ACCESSORIES' and upper(subtyp1)<>'EMPTY' and style_id IN (5794,5795,5796,5801,5802,5805,5806,5836,5859,5890,5895,5909,5915,5916,5917,11558,11618,15932,18256,19235,21459,21460,21461,21462)
GROUP BY subtyp1