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
INFLATABLE KAYAKS
2
1
PEDAL DRIVEN
3
9
SIT INSIDE KAYAKS
4
7
SIT ON TOP KAYAKS
5
4
TANDEM KAYAKS
6
2
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 (1659,1670,1681,1682,1683,1695,3005,3006,3012,3020,4713,9160,9162,9163,15020,15021,15022,15024,15779,16371,16372,18902,18903,19598)
GROUP BY subtyp1