A table is defined as below. Select the most suitable description about the foreign key constraint.
CREATE TABLE master (id INTEGER PRIMARY KEY, name TEXT);
CREATE TABLE record (id INTEGER REFERENCES master (id), count INTEGER);
- If any row exists in the "record" table, no change can be made to the "master" table.
- If the "record" table contains a row with an "id", no change can be made at all to the
corresponding "id" row in the "master" table.
- If the "record" table contains a row with an "id", the corresponding "id" row in the "master"
table cannot be deleted.
- The "record" table cannot have duplicate "id"s.
- These SQL statements are invalid; no constraints are created.
Reveal Solution
Next Question