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
BASELAYERS
2
8
BOTTOMS
3
7
BY ACTIVITY
4
1
SKIRTS AND DRESSES
5
7
TOPS
CACHED
false
EXECUTIONTIME
21
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 (6265,6295,11402,11404,14515,16399,16400,16401,16405,16406,16408,16410,17895,17913,18712,18713,18714,18717,19414,19423,19970,19972,20871,20875,20876)
GROUP BY subtyp1