SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='KNIVES, TOOLS AND GEAR' and subtyp_1='TREKKING POLES' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
10
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='Trekking Poles' and upper(subtyp2)<>'EMPTY' and style_id IN (671,3701,3718,3722,3724,3734,3735,3736,3739,3742,15612,16693,17029,18288,18446,19428,19710,19736,20563,20564,20943,21072)
GROUP BY subtyp2