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
3
ACCESSORIES
2
2
BLANKETS
3
1
LINERS
4
3
PILLOWS
5
1
SLEEPING BAGS
6
2
SLEEPING PADS
CACHED
false
EXECUTIONTIME
29
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 (589,1445,1507,4761,4769,8351,11238,11286,14968,17138,19337,20645)
GROUP BY subtyp1