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
8
BAGS & PANNIERS
2
1
BIKE RACKS
3
8
HELMETS
4
1
PUMPS
CACHED
false
EXECUTIONTIME
9
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 (3263,9124,10666,10739,11512,14536,14654,15318,15362,15954,17396,17536,17551,18797,19455,19940,20101,21598)
GROUP BY subtyp1