SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='COMPONENTS' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
5
GRIPS & BAR TAPE
2
2
HANDLEBARS
3
2
SADDLES
4
14
TIRES
5
1
TUBES
CACHED
false
EXECUTIONTIME
16
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='COMPONENTS' and upper(subtyp1)<>'EMPTY' and style_id IN (10260,10261,10274,10282,10328,10394,10536,10692,10694,10717,14582,15062,15597,15646,15891,16369,16744,16745,17753,17836,20670,20847,21538,10547)
GROUP BY subtyp1