SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='MEN''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
10
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='MENS BIKE CLOTHING' and subtyp1='Bike Shoes' and upper(subtyp2)<>'EMPTY' and style_id IN (2821,6502,7437,8639,8664,10254,10286,10334,10338,10608,10631,10687,14374,14782,14806,14842,15105,16755,16756,17004,17265,18754,21712)
GROUP BY subtyp2