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
2
INFLATABLE KAYAKS
2
4
PEDAL DRIVEN
3
8
SIT INSIDE KAYAKS
4
10
SIT ON TOP KAYAKS
5
1
SURF SKIS & RACING KAYAKS
6
4
TANDEM KAYAKS
7
5
TOURING KAYAKS
CACHED
false
EXECUTIONTIME
2
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 (1670,1681,1682,1683,1695,3005,3006,3012,3020,4711,4713,9163,14854,14855,15020,15024,15779,16371,16372,18903,19521,19598,21970,21998,21999,22000,22072)
GROUP BY subtyp1