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
6
HYBRID
2
4
MOUNTAIN
3
4
ROAD
CACHED
false
EXECUTIONTIME
9
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 (18024,18554,18574,18576,18577,18610,18732,18734,18735,20812,20813,20840,21830)
GROUP BY subtyp2