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
8
HYBRID
2
2
MOUNTAIN
3
5
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 (18024,18554,18574,18575,18576,18577,18610,18733,18734,18735,20812,20813,21830)
GROUP BY subtyp2