SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='SNOWSPORTS' and typ='XC RECREATIONAL AND BACKCOUNTRY' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
8
BINDINGS
2
1
BOOTS
3
4
POLES
CACHED
false
EXECUTIONTIME
19
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='SNOWSPORTS' and typ='XC RECREATIONAL AND BACKCOUNTRY' and upper(subtyp1)<>'EMPTY' and style_id IN (2268,2288,7942,7953,7954,7961,8161,8181,8219,8230,8231,16313,18557)
GROUP BY subtyp1