Which of the following options best describes a domain constraint in a…

2025

Which of the following options best describes a domain constraint in a database system?

Answer: B. Restricts column values to a defined data type and valid rangeA domain constraint in a database specifies the set of valid values that an attribute can hold. It restricts data based on rules such as data type, size,…

  1. A.

    Guarantees that foreign keys link to a valid primary key

  2. B.

    Restricts column values to a defined data type and valid range

  3. C.

    Ensures each table name is unique

  4. D.

    Prevents duplicate records in a table

Attempted by 624 students.

Show answer & explanation

Correct answer: B

A domain constraint in a database specifies the set of valid values that an attribute can hold. It restricts data based on rules such as data type, size, format, and range. For example, an age column may only allow integer values between 0 and 120.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…