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
4
ENERGY GELS
3
6
HYDRATION
4
7
SUPPLEMENTS
CACHED
false
EXECUTIONTIME
18
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,2706,2708,2710,2713,2714,2718,2721,2723,2725,2726,2727,2729,2730,3892,3896,10917,15504,15727)
GROUP BY subtyp1