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
1
ENERGY BARS
2
1
ENERGY CHEWS
3
4
ENERGY GELS
4
4
HYDRATION
5
5
SUPPLEMENTS
CACHED
false
EXECUTIONTIME
2
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 (1609,2698,2706,2710,2712,2713,2718,2721,2726,2727,2729,2730,3892,4411,10917,15727,20940,20941)
GROUP BY subtyp1