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
17
FOOTWEAR
CACHED
false
EXECUTIONTIME
21
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 (8854,8867,15732,15744,15745,15749,15914,16787,18137,18138,18153,18154,18279,18498,19082,19139,19951,19954,20294)
GROUP BY subtyp1