SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='BACKPACKS AND BAGS' and subtyp_1='STUFF SACKS' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
14
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='BACKPACKS AND BAGS' and subtyp1='Stuff Sacks' and upper(subtyp2)<>'EMPTY' and style_id IN (5105,5106,5107,5115,8379,8380,8381,8431,8433,14967,15618,15619,15621,15622,18906,18907,18908,18909,18910,18911,20096,20098)
GROUP BY subtyp2