SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='PADDLESPORTS' and typ='PADDLEBOARDS' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
8
ALL AROUND SUPS
2
1
TOURING & RACING SUPS
CACHED
false
EXECUTIONTIME
29
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='PADDLESPORTS' and typ='PADDLEBOARDS' and upper(subtyp1)<>'EMPTY' and style_id IN (510,514,539,5781,5782,14760,14761,15349,15591)
GROUP BY subtyp1