PostgreSQL PGCES-02 Exam - Topic 9 Question 25 Discussion
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);
A) If any row exists in the 'record' table, no change can be made to the 'master' table.
B) 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.
C) If the 'record' table contains a row with an 'id', the corresponding 'id' row in the 'master' table cannot be deleted.
D) The 'record' table cannot have duplicate 'id's.
E) These SQL statements are invalid; no constraints are created.
Mendy
8 months agoDan
8 months agoRikki
9 months agoJolene
9 months agoMabel
9 months agoIrving
9 months agoLeonida
9 months agoDaren
9 months agoMicah
9 months agoTawna
9 months agoMarylyn
9 months agoAmber
10 months agoDomonique
10 months agoValda
1 year agoRoyal
1 year agoDomonique
1 year agoTy
1 year agoCarri
1 year agoLeah
1 year agoJulie
1 year agoKarma
1 year agoCammy
1 year agoTanesha
1 year agoLatonia
1 year agoFanny
1 year agoVerdell
1 year agoAvery
1 year agoDominic
1 year agoNickole
1 year agoDion
1 year agoStephane
1 year agoGilbert
1 year agoLeonida
1 year agoGilbert
1 year ago