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
12
SOCKS
CACHED
false
EXECUTIONTIME
35
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 (1880,15659,15906,16006,18045,18046,18176,18671,18921,18922,1921,1940)
GROUP BY subtyp2