Skip to main contentSkip to solution

Sometimes we put certain restrictions on the type of data that can be inserted in one or more columns of a table. This is done by ___________.

Solution

✅ Correct Option: 2

A data constraint is a rule applied to one or more columns of a table that limits the type or values of data that can be inserted. Examples are NOT NULL, UNIQUE, PRIMARY KEY, CHECK and DEFAULT.


Option 1: metadata is data about data (column names, data types, table structure). It describes the data but does not restrict it.

Option 3: a database schema is the overall design or structure of the database, not a rule on column values.

Option 4: a database instance is the snapshot of data stored in the database at a particular moment.

Keyboard Shortcuts

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