SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='KID''S' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
2
ACCESSORIES
2
3
BASELAYERS
3
8
FOOTWEAR
CACHED
false
EXECUTIONTIME
16
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='KIDS' and upper(subtyp1)<>'EMPTY' and style_id IN (9073,14527,15906,17813,17814,17815,17816,18142,18143,18671,19078,20622,8968)
GROUP BY subtyp1