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
8
BRAKES
2
1
CHAINRINGS
3
5
CHAINS
4
2
DERAILLEURS
5
3
PEDALS AND CLEATS
CACHED
false
EXECUTIONTIME
14
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 (6482,6904,7372,7438,7467,7883,8590,8600,8610,8683,8703,8717,10379,14680,16293,16402,17055,17823,18266)
GROUP BY subtyp1