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
3
BOTTOMS
2
10
FOOTWEAR
3
1
SKIRTS AND DRESSES
4
2
TOPS
CACHED
false
EXECUTIONTIME
18
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 (9023,15729,15741,15742,15913,16782,16783,16784,16794,16795,17180,19167,19949,19952,20981,20982)
GROUP BY subtyp1