SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='CARE AND REPAIR' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
11
REPAIR
2
2
WATERPROOFING
CACHED
false
EXECUTIONTIME
16
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='CARE AND REPAIR' and upper(subtyp1)<>'EMPTY' and style_id IN (2355,2356,4107,4145,4184,8360,14971,17835,18052,19023,19024,19187,19544,20094,20451)
GROUP BY subtyp1