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
17
BOTTOMS
2
2
BY ACTIVITY
3
6
FOOTWEAR
CACHED
false
EXECUTIONTIME
19
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,3599,3637,3638,4387,4992,5471,5671,6176,15450,16423,16677,18295,18809,18811,20597,21001,21245,21246,21257,21825)
GROUP BY subtyp1