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
3
BASELAYERS
3
4
BOTTOMS
4
2
BY ACTIVITY
5
2
OUTERWEAR
6
6
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='MENS' and upper(subtyp1)<>'EMPTY' and style_id IN (784,2137,3092,5330,5337,5706,5722,5753,5884,9145,9149,9377,13961,14281,15698,20335,20881,21061,21243)
GROUP BY subtyp1