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
CARE & REPAIR
2
1
CLOTHING & ACCESSORIES
3
7
FISHING
4
6
OUTFITTING
5
1
SAFETY
CACHED
false
EXECUTIONTIME
21
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 (1723,11099,11100,11133,11136,11137,14805,15528,17384,17385,1705,11146)
GROUP BY subtyp1