SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='BIKE TOOLS' and subtyp_1='SHOP TOOLS' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
16
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='BIKE TOOLS' and subtyp1='Shop Tools' and upper(subtyp2)<>'EMPTY' and style_id IN (2509,6424,6578,7016,7738,10400,14081,14147,14156,15461,17366,18402,18652,19228,19764,19898,19899,20311,20638,20747,20811,21967,22365,22722)
GROUP BY subtyp2