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
5
CLOTHING & ACCESSORIES
2
13
PFDS
CACHED
false
EXECUTIONTIME
19
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 (9185,9186,9187,9189,9190,9191,9192,9193,9194,9195,9196,9197,9200,9201,9202,9205,14252,9183)
GROUP BY subtyp1