SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='CAMP KITCHEN' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
1
ACCESSORIES
2
3
CUPS & MUGS
3
2
FLATWARE
4
11
FOOD
5
4
PLATES & BOWLS
6
2
STOVES & FUEL
7
1
UTENSILS
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='CAMP KITCHEN' and upper(subtyp1)<>'EMPTY' and style_id IN (1440,1452,1539,3748,3968,4071,4072,4074,8371,8372,13970,15337,17830,17831,21743,21762,21763,21765,21769,21771,21772,21774,21973,21974)
GROUP BY subtyp1