SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='KID''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
HIKING
2
21
SOCKS
3
2
SUMMER
4
1
WINTER
CACHED
false
EXECUTIONTIME
32
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='KIDS' and subtyp1='Footwear' and upper(subtyp2)<>'EMPTY' and style_id IN (1879,1880,3353,9073,10936,14527,15659,15906,16006,16938,18045,18046,18048,18049,18142,18143,18176,18671,18921,18922,19078,19173,1921,1940,8968)
GROUP BY subtyp2