nerdexam
Oracle

1Z0-514 · Question #21

You have to create a table, STUDENTS, with the columns: STUDENT_ID, STUDENT_NAME, DATE_OF_BIRTH, and COURSE_ID. The following constraints have to be enforced on this table: - Each student must be…

The correct answer is B. foreign key constraint on the COURSE_ID column C. check constraint on the DATE_OF_BIRTH column F. primary key constraint on the STUDENT_ID columns. See the full explanation below for the reasoning.

Question

You have to create a table, STUDENTS, with the columns:

STUDENT_ID, STUDENT_NAME, DATE_OF_BIRTH, and COURSE_ID. The following constraints have to be enforced on this table:

  • Each student must be uniquely identifiable by the STUDENT_ID.
  • The STUDENT_ID columns should not be left blank.
  • The student should not be less than 15 years of age.
  • The student can only take a course that is specified in the COURSE

table in the database. Which three constraints must be explicitly enforced on the table? (Choose three)

Options

  • Acheck constraint on the COURSE_ID column
  • Bforeign key constraint on the COURSE_ID column
  • Ccheck constraint on the DATE_OF_BIRTH column
  • Dunique key constraint on the STUDENT_ID column
  • Enot null constraint on the DATE_OF_BIRTH column
  • Fprimary key constraint on the STUDENT_ID columns

How the community answered

(48 responses)
  • A
    15% (7)
  • B
    75% (36)
  • D
    4% (2)
  • E
    6% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-514 Practice