11 лаба от Вадима

This commit is contained in:
2022-10-28 01:00:39 +03:00
parent b4cf7ebb8c
commit 3bbdf902e7
4 changed files with 76 additions and 0 deletions

10
Lab11_Vadim/ex2.sql Normal file
View File

@@ -0,0 +1,10 @@
use AdventureWorks
go
create trigger dJobCandidate
on HumanResources.JobCandidate
after delete
as
insert into HumanResources.JobCandidateHistory (JobCandidateID, Resume, RejectedDate, ContactID)
select JobCandidateID, Resume, GETDATE(), null
from deleted