SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='PADDLESPORTS' and typ='ACCESSORIES' and subtyp_1='CARTS' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
CACHED
false
EXECUTIONTIME
17
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='PADDLESPORTS' and typ='ACCESSORIES' and subtyp1='Carts' and upper(subtyp2)<>'EMPTY' and style_id IN (4716,9329,9337,17200,9330,9339)
GROUP BY subtyp2