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
5
ACCESSORIES
2
3
PILLOWS
3
10
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 (1436,1441,1445,1447,1465,1466,1481,1498,1499,1507,1524,11282,11283,11286,11287,14967,14968,19140)
GROUP BY subtyp1