SELECT subtyp_2, web_url
FROM tb_web_taxonomy
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MEN''S' and subtyp_1='BOTTOMS' and subtyp_2>'' and subtyp_3='EMPTY' and subtyp_2<>'EMPTY'
ORDER BY sort_position
query
RESULTSET
query
ITEMCOUNT
SUBTYP2
1
8
ACTIVE PANTS
2
19
CASUAL PANTS
CACHED
false
EXECUTIONTIME
39
SQL
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MENS' and subtyp1='Bottoms' and upper(subtyp2)<>'EMPTY' and style_id IN (2182,3589,3623,3625,3664,3669,9145,9149,9377,14619,14620,14692,15539,16112,16832,17851,20409,20881,21078,21079,21244,21248,21256)
GROUP BY subtyp2