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
10
BOOKS
2
10
GUIDES
3
4
MAPS
CACHED
false
EXECUTIONTIME
16
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 (202,3954,4161,4169,4175,4608,4649,4664,4693,14989,16039,16260,17096,17254,17463,18606,21092,21093,21452,475)
GROUP BY subtyp1