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
19
ACCESSORIES
2
2
BASELAYERS
3
1
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 (5682,5683,10764,10776,10867,11540,14236,16024,16351,16499,17074,17816,17866,20056,20227,20228,20229,20527,20531,8968,10792,10868,10886)
GROUP BY subtyp1