SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMEN''S' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
2
BOTTOMS
2
14
BY ACTIVITY
3
1
SKIRTS AND DRESSES
4
4
TOPS
CACHED
false
EXECUTIONTIME
20
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and upper(subtyp1)<>'EMPTY' and style_id IN (1308,1318,1319,1368,1385,1425,1427,1429,16616,17676,18957,18965,20904,20905,20958,20960,20962,20963,20966,20967,20969)
GROUP BY subtyp1