SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='KNIVES, TOOLS AND GEAR' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
2
BINOCULARS
2
12
KNIVES & MULTI-TOOLS
3
2
SAWS
4
4
TREKKING POLES
CACHED
false
EXECUTIONTIME
23
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='KNIVES, TOOLS AND GEAR' and upper(subtyp1)<>'EMPTY' and style_id IN (899,2371,2382,3701,3722,5921,13972,15338,15869,15870,16191,16197,16334,16693,17139,19428,20592,21349,21351,21799)
GROUP BY subtyp1