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
1
SLIPPERS
3
15
SOCKS
4
1
SUMMER
CACHED
false
EXECUTIONTIME
18
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 (40,1879,1880,3353,8984,8999,9000,9037,9068,9073,10936,14527,15659,15906,16006,1921,1940,8968)
GROUP BY subtyp2