SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MEN''S' and subtyp_1='ACCESSORIES' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
20
GLOVES & MITTENS
2
3
SUMMER HATS
3
1
WALLETS
CACHED
false
EXECUTIONTIME
79
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MENS' and subtyp1='Accessories' and upper(subtyp2)<>'EMPTY' and style_id IN (756,2790,3406,3407,3408,4291,5225,13959,14962,15945,16949,17199,17719,17720,18423,18466,20053,20054,20221,20342,20376,20378,20382,20498)
GROUP BY subtyp2