SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMEN''S' and subtyp_1='FOOTWEAR' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
2
CASUAL
2
8
HIKING
3
14
RUNNING
4
2
SUMMER
CACHED
false
EXECUTIONTIME
18
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Footwear' and upper(subtyp2)<>'EMPTY' and style_id IN (3309,3314,3690,14571,16507,16581,16997,17609,17611,17860,18133,18134,18417,18511,18846,19076,19475,19613,19751,19997,20211,20213,21606,21609)
GROUP BY subtyp2