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
1
BOLTS & MISC PARTS
2
3
BRAKES
3
1
CHAINS
4
1
FRAME PARTS
5
2
PEDALS AND CLEATS
6
1
TIRES
7
10
TUBES
8
1
WHEELS & RIMS
CACHED
false
EXECUTIONTIME
15
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 (6480,6489,6591,6987,7550,7630,7640,7642,7816,10394,11415,11437,14705,14779,15134,15757,15788,17635,19293)
GROUP BY subtyp1