SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='PADDLESPORTS' and typ='ACCESSORIES' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
2
CARTS
2
1
PADDLEBOARD ACCESSORIES
3
6
PADDLES
4
7
PFDS
5
1
SKIRTS AND COCKPIT COVERS
CACHED
false
EXECUTIONTIME
15
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='PADDLESPORTS' and typ='ACCESSORIES' and upper(subtyp1)<>'EMPTY' and style_id IN (23,29,38,383,386,4496,4509,9337,13897,15019,15775,15777,16695,16696,17098,17200,19851)
GROUP BY subtyp1