โ† TransUnion questions

Effect of adding a foreign key after inserting rows

Filed under TransUnion

The question

Given two tables student(id, name) and city(id, name), each with 5 rows inserted, what happens when a foreign key constraint is added?

No write-up yet. Related questions below have one.

Related TransUnion questions

Collected from public candidate posts and coding forums. Updated Nov 2026.