SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='BACKPACKS AND BAGS' and subtyp_1='BACKPACKS' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
11
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='Backpacks' and upper(subtyp2)<>'EMPTY' and style_id IN (5063,5070,5129,14247,17766,18408,18782,19438,19440,19446,19447,19448,19451,20108,20917,20918,20919,21568,21745,22240,22434,5049)
GROUP BY subtyp2