SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='MEN''S BIKE CLOTHING' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
7
BIBS, SHORTS & TIGHTS
2
10
BIKE SHOES
3
1
JERSEYS & JACKETS
CACHED
false
EXECUTIONTIME
20
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='MENS BIKE CLOTHING' and upper(subtyp1)<>'EMPTY' and style_id IN (2136,2138,2145,5851,7437,8664,10334,10338,10501,10631,10687,14782,14806,16004,17004,18257,19232,21712)
GROUP BY subtyp1