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
1
BASELAYERS
2
6
BOTTOMS
3
5
SKIRTS AND DRESSES
4
8
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 (2915,2945,2955,2975,2977,2998,3001,3002,11309,11311,11312,11313,14642,16442,16443,16444,18976,19555,19557,19830,20177,2973,2979)
GROUP BY subtyp1