Oh my, attempted concatenation of two incompatible types, old-style joins, nvarchar without length - there is a whole mess of problems going on here. What exactly are you attempting to do? What does "filter out" mean? What will the trigger do with the rows it identifies? Is this trigger supposed to do different things with an update than a delete? Is it configured as a trigger for both update and delete? For a delete operation,
inserted
will be empty, so I'm having a real hard time understanding what is really going on here and what purpose this trigger could possibly serve. —
Aaron Bertrand ♦ 17 hours ago