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
9
BAGS & PANNIERS
2
1
BOTTLES
3
1
CHILD SEATS & TRAILERS
4
3
HELMETS
5
3
KICKSTANDS
6
7
PUMPS
CACHED
false
EXECUTIONTIME
15
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 (1049,1066,1076,1085,1137,1234,1236,1275,1276,16987,17294,17330,17331,17822,17875,17876,17877,17977,17978,19368,19369,20035,20126,20970)
GROUP BY subtyp1