SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='KID''S' and subtyp_1='ACCESSORIES' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
1
CHILD CARRIERS
2
5
GLOVES & MITTENS
3
13
HATS & NECKWARMERS
CACHED
false
EXECUTIONTIME
16
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='KIDS' and subtyp1='Accessories' and upper(subtyp2)<>'EMPTY' and style_id IN (10764,10776,10867,11540,14236,16024,16351,16499,17816,17866,20056,20227,20228,20229,20527,20531,10792,10868,10886)
GROUP BY subtyp2