I want to apply distinct method on attribute values. I tried queryexpression, linq query and fetchxml but I could not find a solution for c#.
For example if I have following records
row1 -> A | E | A
row2 -> B | D | A
row3 -> C | C | B
row4 -> D | B | C
row5 -> E | A | D
row6 -> E | A | E
I only want to retrieve row1, row3, row4, row5, row6
and not row2
.
The Distinct command will only work on a per row basis. If you truly wanted it to be a column level distinction, you have two options: