VaibB
Contributor
  1. Create a UDF where you pass all the fields as Input that you need to take into consideration for a unique row.
  2. Create a list by splitting based on ' ' or ','.
  3. sort the list and
  4. concat all the elements of the list to derive "new field".
  5. Calculate dense_rank based on the derived field .
  6. Remove "new field".