SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMEN''S' and subtyp_1='SKIRTS AND DRESSES' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
16
DRESSES
2
3
SKIRTS
3
5
SKORTS
CACHED
false
EXECUTIONTIME
23
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Skirts and Dresses' and upper(subtyp2)<>'EMPTY' and style_id IN (1422,1746,2887,2902,2998,3002,3598,5566,8005,11308,15087,15930,16409,16410,16411,16412,16431,16443,16610,16612,16619,16684,16835,16837,8072)
GROUP BY subtyp2