nerdexam
PostgreSQL_CE

PGCES-02 · Question #14

PGCES-02 Question #14: Real Exam Question with Answer & Explanation

Sign in or unlock PGCES-02 to reveal the answer and full explanation for question #14. The question stem and answer options stay visible for context.

Question

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);

Options

  • AIf any row exists in the "record" table, no change can be made to the "master" table.
  • BIf the "record" table contains a row with an "id", no change can be made at all to the
  • CIf the "record" table contains a row with an "id", the corresponding "id" row in the "master" table
  • DThe "record" table cannot have duplicate "id"s.
  • EThese SQL statements are invalid; no constraints are created.

Unlock PGCES-02 to see the answer

You've previewed enough free PGCES-02 questions. Unlock PGCES-02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PGCES-02 Practice