SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='HEALTH AND SAFETY' and subtyp_1='SUN & BUG PROTECTION' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
15
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='HEALTH AND SAFETY' and subtyp1='Sun & Bug Protection' and upper(subtyp2)<>'EMPTY' and style_id IN (75,76,99,103,108,111,119,454,455,3785,3798,3877,3924,3939,4089,4185,4188,15690,17109,17115,17116,17688,21756,21813)
GROUP BY subtyp2