I have to rank records which have categorical data based on similarity to each other. For example- For a given record I want to rank all other records based on its similarity( A