SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='COMPONENTS' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
4
BRAKES
2
1
CASSETTES
3
1
CHAINS
4
2
DERAILLEURS
5
3
GRIPS & BAR TAPE
6
1
PEDALS AND CLEATS
7
4
TIRES
8
2
WHEELS & RIMS
CACHED
false
EXECUTIONTIME
59
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='COMPONENTS' and upper(subtyp1)<>'EMPTY' and style_id IN (7168,7473,7811,10717,15330,15521,15891,15937,15942,17775,17796,17964,17965,18332,20238,20670,20728,21538)
GROUP BY subtyp1