SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='MORE...' and typ='NUTRITION AND SUPPLEMENTS' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
4
ENERGY GELS
2
6
HYDRATION
3
6
SUPPLEMENTS
CACHED
false
EXECUTIONTIME
13
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='MORE...' and typ='NUTRITION AND SUPPLEMENTS' and upper(subtyp1)<>'EMPTY' and style_id IN (2701,2703,2706,2708,2710,2718,2721,2723,2725,2726,2727,2729,2730,3892,4824,10917,14628)
GROUP BY subtyp1