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
15
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,6648,7045,7194,7723,7738,11410,14147,15461,17412,18073,18402,18756,18759,19206,19228)
GROUP BY subtyp2