11 лаба от Вадима
This commit is contained in:
10
Lab11_Vadim/ex2.sql
Normal file
10
Lab11_Vadim/ex2.sql
Normal 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
|
||||
Reference in New Issue
Block a user