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
4
HAMMOCK ACCESSORIES
2
1
STAKES & PEGS
3
5
TARPS & FOOTPRINTS
4
1
TENT ACCESSORIES
5
3
TENTS
CACHED
false
EXECUTIONTIME
17
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 (553,601,1478,2100,2105,2111,2115,2746,14545,16501,16502,18904,19150,21756)
GROUP BY subtyp1