Because the INSERTED and the table2 has no direct relation to each other, I have to join two more tables for this solution. Because I tried to keep it as simple as possible, I wanted to avoid this.
But it seems to be the best way to do it for me anyway.
Thanks for your help.
If it doesn't work, I come back.
Have a nice time.