SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='TENTS AND HAMMOCKS' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
3
HAMMOCK ACCESSORIES
2
2
HAMMOCKS
3
9
TARPS & FOOTPRINTS
CACHED
false
EXECUTIONTIME
25
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='TENTS AND HAMMOCKS' and upper(subtyp1)<>'EMPTY' and style_id IN (574,600,615,2099,2103,2107,2112,2113,16703,16704,17589,18358,19149,19911)
GROUP BY subtyp1