SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MEN''S' and subtyp_1='FOOTWEAR' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
3
GAITORS
2
1
INSOLES
3
21
SOCKS
CACHED
false
EXECUTIONTIME
17
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MENS' and subtyp1='Footwear' and upper(subtyp2)<>'EMPTY' and style_id IN (1890,1905,1907,1944,1946,3260,9069,14732,15635,15638,15643,15744,15745,15746,15747,15912,15914,16148,16959,17348,18141,19253,19879,19954,1615)
GROUP BY subtyp2