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
15
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,2702,2706,2708,2710,2712,2718,2721,2723,2725,2726,2727,2729,2730,3892,10917,15504,15727,19547,19886,19887,19981,20384)
GROUP BY subtyp1