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
2
LINERS
3
2
PILLOWS
4
4
SLEEPING PADS
CACHED
false
EXECUTIONTIME
19
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 (583,1436,1481,4718,4719,4762,8382,8436,11237,14541,16710,19140)
GROUP BY subtyp1