Create trigger tr_emp_Audit_UD on dbo.emp
for update, delete
as
set nocount on
Insert into dbo.emp_history (emp_number, emp_name, join_date, sal)
select emp_number, emp_name, join_date, sal from deleted
go
you might want to add a modification data on the history (default=getdate()) and updated by (default = user_name())