SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMEN''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
1
GAITORS
2
1
INSOLES
3
22
SOCKS
CACHED
false
EXECUTIONTIME
20
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Footwear' and upper(subtyp2)<>'EMPTY' and style_id IN (1830,1835,1888,1889,1893,1951,3260,15432,15433,15637,15658,15729,15736,15913,16784,16959,17180,17182,17489,18027,18035,18140,18175,19253)
GROUP BY subtyp2