SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='MORE...' and typ='CLIMBING' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
3
BELAY & DESCENDERS
2
5
CARABINERS
3
1
CHALKBAGS & CHALK
4
2
CLIMBING SHOES
5
3
HARNESSES
6
1
HELMETS
7
3
ROPES
8
2
SLINGS
CACHED
false
EXECUTIONTIME
0
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='MORE...' and typ='CLIMBING' and upper(subtyp1)<>'EMPTY' and style_id IN (657,679,703,710,729,730,732,761,782,3677,3691,6024,11239,11240,11241,11242,11246,15632,15918,16061)
GROUP BY subtyp1