SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='SNOWSPORTS' and typ='SNOWSHOES' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
4
KIDS
2
9
MENS
3
1
POLES
4
5
WOMENS
CACHED
false
EXECUTIONTIME
20
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='SNOWSPORTS' and typ='SNOWSHOES' and upper(subtyp1)<>'EMPTY' and style_id IN (403,406,411,413,414,10746,10748,10751,10752,10753,10756,16314,16315,16316,16317,18304,18305,18307)
GROUP BY subtyp1