SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='COMPONENTS' and subtyp_1='GRIPS & BAR TAPE' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
21
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='COMPONENTS' and subtyp1='Grips & Bar Tape' and upper(subtyp2)<>'EMPTY' and style_id IN (1104,6372,6423,6853,7743,10692,10694,10717,15468,15646,17242,17499,18072,18094,18332,18696,20662,20712)
GROUP BY subtyp2