SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CAR RACKS' and typ='BIKE 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
7
HITCH RACKS
3
5
ROOF RACKS
4
1
TRUCK BED
5
3
TRUNK RACKS
CACHED
false
EXECUTIONTIME
15
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAR RACKS' and typ='BIKE RACKS' and upper(subtyp1)<>'EMPTY' and style_id IN (9953,9969,9984,10010,10031,10037,10052,10060,10063,10072,10118,10127,10130,10138,14412,14413,14792,14913,14914,15456,16852,17270,10075)
GROUP BY subtyp1