I am using Microsoft SQL Server 2016.
I have two strings containing email addresses called @Recipients
and @Copy_Recipients
.
I need to cut out
those emails from @Copy_Recipients
that exists in @Recipients
.
@Recipients = '[email protected];[email protected];[email protected]';
@Copy_Recipients = '[email protected];[email protected];[email protected];[email protected];';
@Wanted_Result = '[email protected];[email protected];';
I know I am not bringing any idea of how to fix this. That's why I am writing. To ask what methods or functions could I use to achieve my goal. Thank you.