SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAR RACKS' and typ='WATERSPORTS' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
8
ACCESSORIES
2
1
CANOE RACKS
3
10
KAYAK RACKS
4
5
SUP RACKS
CACHED
false
EXECUTIONTIME
10
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAR RACKS' and typ='WATERSPORTS' and upper(subtyp1)<>'EMPTY' and style_id IN (3276,3277,8455,8456,8461,8467,8472,10006,10007,10065,10084,10111,10113,10135,10137,11152,11153,11160,11175,11178,11179,11183,11191,14706,19102)
GROUP BY subtyp1