SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='PADDLESPORTS' and typ='ACCESSORIES' and subtyp_1='PADDLES' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
1
CANOE
2
14
KAYAK
3
10
SUP
CACHED
false
EXECUTIONTIME
7
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='PADDLESPORTS' and typ='ACCESSORIES' and subtyp1='Paddles' and upper(subtyp2)<>'EMPTY' and style_id IN (23,28,29,30,31,33,34,38,1679,1688,1704,10998,10999,11002,11007,11008,11009,14754,15775,15885,16506,16897,19615,19616,19851)
GROUP BY subtyp2