SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='BIKES' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
5
ELECTRIC BIKES
2
3
HYBRID BIKES
3
11
MOUNTAIN BIKES
4
4
ROAD BIKES
CACHED
false
EXECUTIONTIME
29
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='BIKES' and upper(subtyp1)<>'EMPTY' and style_id IN (10675,16433,16494,17214,17547,17608,17966,18024,18075,18362,18365,18610,18612,18727,18733,18734,18735,20031,20839,21867,21868,21869,22246)
GROUP BY subtyp1