SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='KNIVES, TOOLS AND GEAR' and subtyp_1='KNIVES & MULTI-TOOLS' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
0
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='KNIVES, TOOLS AND GEAR' and subtyp1='Knives & Multi-tools' and upper(subtyp2)<>'EMPTY' and style_id IN (881,886,898,901,905,907,2371,2392,4023,4056,13917,13919,15869,15870,15872,15873,16191,17469,18474,19490,21352,21798,22224)
GROUP BY subtyp2