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
7
ACCESSORIES
2
3
BASELAYERS
3
3
FOOTWEAR
CACHED
false
EXECUTIONTIME
17
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 (3384,3409,5683,11540,13940,16351,17074,17814,17816,18045,18049,18176,20229,20622)
GROUP BY subtyp1