SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MEN''S' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
1
ACCESSORIES
2
2
BASELAYERS
3
3
BOTTOMS
4
2
BY ACTIVITY
5
2
FOOTWEAR
6
10
TOPS
CACHED
false
EXECUTIONTIME
22
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MENS' and upper(subtyp1)<>'EMPTY' and style_id IN (429,2829,5360,5362,5763,11319,14282,14489,16670,16672,16802,16846,17348,18423,19264,20980,21260,21373,21574,21577)
GROUP BY subtyp1