SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='ACCESSORIES' and subtyp_1='HELMETS' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
11
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='ACCESSORIES' and subtyp1='Helmets' and upper(subtyp2)<>'EMPTY' and style_id IN (1234,9124,10514,10739,11609,14536,14654,14741,14768,15754,15954,16987,17238,17551,17553,17654,17661,19635,20970,21686,21687,21814)
GROUP BY subtyp2