SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='PADDLESPORTS' and typ='KAYAKS' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
4
SIT INSIDE KAYAKS
2
4
SIT ON TOP KAYAKS
3
2
TANDEM KAYAKS
4
1
TOURING KAYAKS
CACHED
false
EXECUTIONTIME
15
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='PADDLESPORTS' and typ='KAYAKS' and upper(subtyp1)<>'EMPTY' and style_id IN (3005,3006,3012,3020,14854,14855,16371,16372,18903,22000)
GROUP BY subtyp1