SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAMP AND HIKE' and typ='CAMP FURNITURE' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
9
ACCESSORIES
2
8
CHAIRS
3
2
TABLES
CACHED
false
EXECUTIONTIME
14
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='CAMP FURNITURE' and upper(subtyp1)<>'EMPTY' and style_id IN (2099,2106,2115,2743,14432,14435,14858,15615,16712,17186,17188,17189,17191,17192,19499,19500,21756,22070)
GROUP BY subtyp1