Skip to main contentSkip to solution

Which of the following statements are correct?

A. Database schema is the design of a database.

B. A database constraint is a restriction on the type of data that can be inserted into the table.

C. Database schema and database constraints are stored in the database catalog.

D. Primary key is used to relate two tables or relations.

Solution

✅ Correct Option: 2

A, B and C are correct. A schema is the overall design (structure) of a database: its tables, attributes, data types and relationships. A constraint restricts what data can be inserted into a table, such as NOT NULL, UNIQUE or CHECK. The schema and the constraints are both stored as metadata in the database catalog (data dictionary).


Statement D: a primary key uniquely identifies each row of a table. It is a foreign key that relates two tables, by referring to the primary key of another table.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question