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
ACCESSORIES
2
7
TOPS
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 (5324,5339,5405,5449,5451,5479,5550,5552,5553,5662,5696,5697,5718,14255,16169,16170,16671,16685,18740,18741,18803,19589,19931,21082)
GROUP BY subtyp1