SELECT subtyp_1, web_url
FROM tb_web_taxonomy
WHERE dept='CYCLING' and typ='MEN''S BIKE CLOTHING' and subtyp_1>'' and subtyp_2='EMPTY' and subtyp_1<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP1
1
14
BIBS, SHORTS & TIGHTS
2
8
JERSEYS & JACKETS
CACHED
false
EXECUTIONTIME
16
SQL
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='MENS BIKE CLOTHING' and upper(subtyp1)<>'EMPTY' and style_id IN (2136,2137,2138,2141,2145,2146,2147,2148,2156,2162,14683,14684,16395,17271,18057,19174,19179,19376,19507,20701,21650,21651)
GROUP BY subtyp1