SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='MORE...' and typ='PUBLICATIONS' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
6
BOOKS
2
12
GUIDES
3
4
MAPS
CACHED
false
EXECUTIONTIME
14
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='MORE...' and typ='PUBLICATIONS' and upper(subtyp1)<>'EMPTY' and style_id IN (3954,4175,4549,4568,4581,4623,4642,4656,4690,4697,4699,4710,14345,15058,15795,16034,16035,16038,16039,16040,17565)
GROUP BY subtyp1