SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='HYDRATION' and subtyp_1='HYDRATION PACKS' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
17
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='HYDRATION' and subtyp1='Hydration Packs' and upper(subtyp2)<>'EMPTY' and style_id IN (975,981,1019,1038,1046,15011,15015,16164,16166,17049,17250,17503,17587,18339,19002,21705,21715,21718,21719)
GROUP BY subtyp2