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
14
HEADLAMPS
2
8
LANTERNS
CACHED
false
EXECUTIONTIME
17
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 (660,695,714,715,743,11248,11249,15874,17332,17333,17334,17335,17336,17573,17588,17989,17991,18560,19222,20047,20502,20944)
GROUP BY subtyp1