SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='HEALTH AND SAFETY' and subtyp_1='SURVIVAL' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
19
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='Survival' and upper(subtyp2)<>'EMPTY' and style_id IN (78,79,80,101,3834,3835,3925,4158,4201,7759,8386,8387,14415,14416,15333,16145,19187,21690)
GROUP BY subtyp2