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
3
CHILD CARRIERS
2
5
GLOVES & MITTENS
3
14
HATS & NECKWARMERS
CACHED
false
EXECUTIONTIME
12
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 (3384,3409,5193,5194,5425,10764,10867,10887,11540,13940,14236,16024,16351,17815,17816,17864,17865,17866,18373,10792,10868,10886)
GROUP BY subtyp2