This repository has been archived on 2024-12-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Databases/Lab11_Vadim/ex2.sql

10 lines
255 B
Transact-SQL

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