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
3
CAMP BATHROOM
2
3
FIRST AID SUPPLIES
3
13
SUN & BUG PROTECTION
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='HEALTH AND SAFETY' and upper(subtyp1)<>'EMPTY' and style_id IN (445,449,455,13975,17109,17110,17111,17112,17113,17115,17116,17117,17118,17688,18270,19618,19619,21812,21813)
GROUP BY subtyp1