When I compare two strings in SQL Server, there are couple of simple ways with =
or LIKE
.
I want to redefine equality as:
If
There is no simple way to do this. You are advised to write a function or stored procedure that does he processing involved with this requirement.
Your function can use other functions that split the stings into parts, sort by words etc.
Here's how you can split the strings:
T-SQL: Opposite to string concatenation - how to split string into multiple records