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
5
BOTTOMS
2
3
OUTERWEAR
3
2
SKIRTS AND DRESSES
4
13
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 (21113,21114,21115,21116,21117,21118,21120,21121,21123,21124,21125,21126,21128,21130,21131,21132,21133,21134,21136,21137,21138,21140)
GROUP BY subtyp1