In an OUTPUT clause in an INSTEAD OF INSERT trigger, is it possible to reference both INSERTED tables?

I read it as the INSERTED alias would be required in the FROM where you access the trigger INSERTED The INSERTED in the OUTPUT clause can only reference the data inserted into t So you can't have outer_inserted. D in your OUTPUT clause Nor can you do this, which is how I read it INSERT INTO t (a, b, c) OUTPUT inserted. A, inserted.

B INTO t_prime (a, b) SELECT a, b, c FROM inserted --no alias = **FAIL.

I read it as the INSERTED alias would be required in the FROM where you access the trigger INSERTED. The INSERTED in the OUTPUT clause can only reference the data inserted into t. So you can't have outer_inserted.

D in your OUTPUT clause Nor can you do this, which is how I read it INSERT INTO t (a, b, c) OUTPUT inserted. A, inserted. B INTO t_prime (a, b) SELECT a, b, c FROM inserted --no alias = **FAIL.

Yeah, it seems the important point is that only DELETE, UPDATE and MERGE statements can reference tables other than INSERTED in the OUTPUT clause. In an INSERT statement it can reference only INSERTED. – John Oct 21 '10 at 20:26.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions