SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='COMPONENTS' and subtyp_1='TUBES' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
17
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='COMPONENTS' and subtyp1='Tubes' and upper(subtyp2)<>'EMPTY' and style_id IN (6448,6512,6561,6663,6937,6987,7007,7550,7642,7878,10394,11436,11437,14705,14779,14955,15134,15246,15757,15788,15948,15949,15957,22002)
GROUP BY subtyp2