Current data as follows: ID and Cust Name for example for the ID 1 there is one cust name and other two lines are UNKOWN. So, for each unique ID and under that if the customer name is only one unique name then it should replace with that customer name.
ID Cust Name
1 A
1 UNKNOWN
1 UNKNOWN
2 B
2 BB
2 UNKNOWN
3 C
3 UNKNOWN
3 C
3 C
3 UNKNOWN
4 D
4 UNKNOWN
For Example: Down below is the desired output and logic should apply all those rows except ID 2 that's because under each unique ID there are two customer name. so can't replace. only one customer name should beassociated with
that deal.
ID Cust Name
1 A
1 A
1 A
2 B
2 UNKNOWN
2 BB
3 C
3 C
3 C
3 C
3 C
4 D
4 D