SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAR RACKS' and typ='ROOF RACKS' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
7
ACCESSORIES
2
3
CROSSBARS
3
5
FIT KITS
4
7
TOWERS
CACHED
false
EXECUTIONTIME
14
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAR RACKS' and typ='ROOF RACKS' and upper(subtyp1)<>'EMPTY' and style_id IN (11154,11162,11163,11164,11165,11166,11169,11170,11181,11201,11202,11204,11206,11207,11208,11209,11210,11211,11214,16798,17120,19763)
GROUP BY subtyp1