SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMEN''S' and subtyp_1='BY ACTIVITY' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
24
SWIMMING
CACHED
false
EXECUTIONTIME
17
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='By Activity' and upper(subtyp2)<>'EMPTY' and style_id IN (1308,1318,1319,1341,1342,1368,1425,1429,1430,11269,11280,16618,17671,20904,20905,20906,20962,20963,20964,20965,20966,20967,20968,20969)
GROUP BY subtyp2