SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='BIKES' and subtyp_1='MOUNTAIN BIKES' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
6
FAT BIKE
2
7
FULL SUSPENSION
3
3
HARD TAIL
CACHED
false
EXECUTIONTIME
0
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='BIKES' and subtyp1='Mountain Bikes' and upper(subtyp2)<>'EMPTY' and style_id IN (16271,17608,17966,17995,18075,18105,18164,18165,18365,18661,20165,20166,20605,20839,21055,21867,21869)
GROUP BY subtyp2