SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='HYDRATION' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
1
ACCESSORIES
2
1
BOTTLES
3
18
HYDRATION PACKS
CACHED
false
EXECUTIONTIME
20
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='HYDRATION' and upper(subtyp1)<>'EMPTY' and style_id IN (975,981,1019,1032,1046,15011,15016,15593,16164,16166,17048,17049,17050,17250,17347,17503,19002,21705,21715)
GROUP BY subtyp1