Establish Referential Intergrity Constraint in SQL

Question:

Establish Referential Intergrity Constraint

Identify the common key between the two tables given below and establish referential integrity constraint between them.

Quiz for Exam - Establish Referential Intergrity Constraint

Code:

sample.sql

alter table PointofInterest add constraint FK foreign key (townID) references Town(townID);

Recommended:

2 thoughts on “Establish Referential Intergrity Constraint in SQL”

Leave a Comment

Your email address will not be published. Required fields are marked *