
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[tri_delApproval]'))
DROP TRIGGER [dbo].[tri_delApproval]
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

create trigger [dbo].[tri_delApproval]
on [dbo].[Import_Approval]
after delete
as
begin
delete from import_appstate where app_id in(select deleted.id from deleted)
end

GO


