T-SQL Trigger Update
From 'INSERTED', table INSERTED is common to both the INSERT, UPDATE trigger.
CREATE TRIGGER dbo.Table1_Updated
ON dbo.Table1
FOR INSERT, UPDATE /* Fire this trigger when a row is INSERTed or UPDATEd */
AS BEGIN
UPDATE dbo.Table1 SET dbo.Table1.LastUpdated = GETDATE()
FROM INSERTED
WHERE inserted.id=Table1.id
END
Update table1
set LastUpdated = getdate()
from inserted i, table1 a
where i.pk1 = a.pk1