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
17
BOOKS
2
9
GUIDES
CACHED
false
EXECUTIONTIME
9
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 (4539,4551,4554,4557,4558,4593,4629,4657,4663,14985,14988,15348,17256,17744,17745,17962,18598,18603,19133,19303,19505,19930,4675)
GROUP BY subtyp1