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
4
BOTTOMS
3
3
SKIRTS AND DRESSES
4
5
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 (2915,2975,2977,2998,3001,3002,11311,11312,11313,14642,16442,16444,18976,19557,2973)
GROUP BY subtyp1