SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='ACCESSORIES' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
2
BAGS & PANNIERS
2
3
BELLS & HORNS
3
2
BOTTLES
4
1
COMPUTERS
5
2
COOL WEATHER ACCESSORIES
6
3
FENDERS
7
1
KICKSTANDS
8
1
LIGHTS
9
1
LOCKS
10
5
LUBES & DEGREASERS
11
2
PUMPS
12
1
TRAINERS
CACHED
false
EXECUTIONTIME
18
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='ACCESSORIES' and upper(subtyp1)<>'EMPTY' and style_id IN (1076,6394,6525,6586,7417,7465,7740,7854,10511,14160,14823,14936,14999,15068,15364,15904,17052,17148,18939,19204,19291,19317,20518,20792)
GROUP BY subtyp1