SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='BIKES' and subtyp_1='ELECTRIC BIKES' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
7
HYBRID
2
3
MOUNTAIN
3
6
ROAD
CACHED
false
EXECUTIONTIME
16
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='BIKES' and subtyp1='Electric Bikes' and upper(subtyp2)<>'EMPTY' and style_id IN (1241,14410,15125,15237,16841,18024,18554,18574,18584,18610,18732,18733,18734,18735,18747,19141,19601)
GROUP BY subtyp2