Made view return distinct values