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
6
ALL AROUND SUPS
2
1
INFLATIBLE SUPS
3
2
TOURING & RACING SUPS
CACHED
false
EXECUTIONTIME
15
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 (508,510,511,512,514,515,539,5781,14813)
GROUP BY subtyp1