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
16
BOTTOMS
2
3
BY ACTIVITY
3
1
FOOTWEAR
CACHED
false
EXECUTIONTIME
13
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 (3496,3515,3550,3604,3638,3666,4898,5471,14674,16423,18295,18811,19260,19273,20597,21245,21246,21379)
GROUP BY subtyp1