I have a string
@Str1 = '123'
I have another string
@Str2 = '12345'
I need to compare both strings and return 1 if each character in @Str1
have an existence in @Str2
even If the @Str2
is '45132' it must return 1,
If @Str2
is 456 It must return 0
Even If the @Str2 is '45132' it must return 1
I don't suggest use of any functions, because my live table has 1 million rows in it. Possibly I could avoid performance hit.