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
1
DRY STORAGE
2
1
FISHING
3
4
OUTFITTING
4
1
PADDLES
5
1
RACKS & STORAGE
CACHED
false
EXECUTIONTIME
17
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 (1678,1688,1699,17574,17575,19599)
GROUP BY subtyp1