Skip to main contentSkip to solution

_____ is a restriction on the type of data that can be inserted into the table.

Solution

✅ Correct Option: 2

A database constraint is a rule applied to a table's columns that limits what data can be inserted. If an insert or update violates the rule, the database rejects it. Common examples are NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK and DEFAULT.


Option 1: a schema is the overall structure (tables, columns, data types, relationships) of the database, not a restriction on the data itself.

Option 3: a query is a request to retrieve or modify data, such as SELECT.

Option 4: restore means recovering a database from a backup.

Keyboard Shortcuts

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