SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='WOMEN''S BIKE CLOTHING' and subtyp_1='BIKE SHOES' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
1
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='WOMENS BIKE CLOTHING' and subtyp1='Bike Shoes' and upper(subtyp2)<>'EMPTY' and style_id IN (8679,8692,8723,10279,10397,10405,10420,14177,14785,16758,16759,16966,17500,21711)
GROUP BY subtyp2