SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='LIGHTING' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
10
HEADLAMPS
2
3
LANTERNS
CACHED
false
EXECUTIONTIME
10
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='LIGHTING' and upper(subtyp1)<>'EMPTY' and style_id IN (695,743,4493,6008,11248,11249,15241,15874,17334,17335,17989,19088,20047)
GROUP BY subtyp1