use a select distinct to get homogenous features