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
2
ACCESSORIES
2
4
BASELAYERS
3
6
BOTTOMS
4
2
BY ACTIVITY
5
5
OUTERWEAR
6
6
TOPS
CACHED
false
EXECUTIONTIME
14
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 (2137,3104,3379,5330,5645,5753,5884,9045,9060,9145,9149,9377,14281,15539,16813,18188,18955,20695,20881,20882,21061,21069,21075,21079,21247)
GROUP BY subtyp1