Answer the question
In order to leave comments, you need to log in
Trigger to delete records in a linked table?
Answer the question
In order to leave comments, you need to log in
You need to create a delete triggerNot necessary.
ALTER TABLE [dbo].[PerformerGenre]
WITH NOCHECK ADD CONSTRAINT [FK_PerformerGenre_Genre] FOREIGN KEY([Genre])
REFERENCES [dbo].[Genre] ([ID])
ON DELETE CASCADE
required in coursework
CREATE TRIGGER deleted_otmetki ON student FOR DELETE
AS
DELETE FROM otmetki WHERE otmetki.kod_studenta = deleted.kod_studenta
GO
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question