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
22
KNIVES & MULTI-TOOLS
CACHED
false
EXECUTIONTIME
18
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 (2367,2369,2371,2374,2375,2382,2387,2388,2391,2392,2393,2394,13917,13918,13919,15866,15868,15869,15870,15871,15872,15873)
GROUP BY subtyp1