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
7
ACCESSORIES
2
1
BASELAYERS
3
1
BY ACTIVITY
4
16
FOOTWEAR
CACHED
false
EXECUTIONTIME
23
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 (950,1827,1840,2205,10877,14731,14732,14734,14737,14738,15743,15747,15748,15912,16157,16786,18141,18227,18522,19069,19079,19875,20522,21842,10875)
GROUP BY subtyp1