I have two strings:
'one two three'
and
'two one three'
While they are not the same if I compare them directly the values that they contain separately are the same and this is what it is important for me. So my answer to the comparison will be that the strings are equal. I am looking for more straight forward way to compare them without the need create function to split and compare each separate value. Is there such solution?
I have found this thread in stackoverflow: How to compare if two strings contain the same words in T-SQL for SQL Server 2008?
It does not work for me because I want to make this comparison on the go in a cte where I make other comparisons.
See Question&Answers more detail:os