SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='HEALTH AND SAFETY' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
5
CAMP BATHROOM
2
2
FIRE STARTERS
3
3
FIRST AID SUPPLIES
4
1
RUNNERS SAFETY
5
6
SUN & BUG PROTECTION
6
1
SURVIVAL
CACHED
false
EXECUTIONTIME
11
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='HEALTH AND SAFETY' and upper(subtyp1)<>'EMPTY' and style_id IN (92,103,106,113,119,445,4522,8400,9215,13975,17110,17404,17688,18260,19558,21774)
GROUP BY subtyp1