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
12
ACCESSORIES
2
2
BOTTOMS
3
7
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 (4846,4847,14677,14678,17174,19267,19277,19279,19280,20078,20760,21367,21376,21377,21378,21380,21381,21383,21385,21387,21388)
GROUP BY subtyp1