SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='SLEEP GEAR' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
4
ACCESSORIES
2
1
LINERS
3
10
SLEEPING BAGS
4
5
SLEEPING PADS
CACHED
false
EXECUTIONTIME
15
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='SLEEP GEAR' and upper(subtyp1)<>'EMPTY' and style_id IN (581,583,589,613,11237,11238,14541,14548,14550,15311,16102,19327,19328,20130,21635,21636,21637,21638,21641)
GROUP BY subtyp1