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
1
FIRE STARTERS
3
5
FIRST AID SUPPLIES
4
3
RUNNERS SAFETY
5
2
SUN & BUG PROTECTION
6
1
SURVIVAL
CACHED
false
EXECUTIONTIME
16
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 (89,94,114,4527,4538,8399,8450,8451,14172,14416,17136,17137,18904,19254,19465,21756,4525)
GROUP BY subtyp1